kubernetesk8s.io/kubernetes/pkg/kubectl/validation Index | Files

package validation

import "k8s.io/kubernetes/pkg/kubectl/validation"

Index

Types

type ConjunctiveSchema

type ConjunctiveSchema []Schema

ConjunctiveSchema encapsulates a schema list.

func (ConjunctiveSchema) ValidateBytes

func (c ConjunctiveSchema) ValidateBytes(data []byte) error

ValidateBytes validates bytes per a ConjunctiveSchema.

type NoDoubleKeySchema

type NoDoubleKeySchema struct{}

NoDoubleKeySchema is a schema that disallows double keys.

func (NoDoubleKeySchema) ValidateBytes

func (NoDoubleKeySchema) ValidateBytes(data []byte) error

ValidateBytes validates bytes.

type NullSchema

type NullSchema struct{}

NullSchema always validates bytes.

func (NullSchema) ValidateBytes

func (NullSchema) ValidateBytes(data []byte) error

ValidateBytes never fails for NullSchema.

type Schema

type Schema interface {
	ValidateBytes(data []byte) error
}

Schema is an interface that knows how to validate an API object serialized to a byte array.

Source Files

schema.go

Version
v1.14.0-beta.2
Published
Mar 12, 2019
Platform
js/wasm
Imports
5 packages
Last checked
34 seconds ago

Tools for package owners.