Back to godoc.org
k8s.io/kube-openapi / pkg / util / proto / validation

Package validation

v0.0.0 (daf3cbb)
Latest Go to latest
Published: 3 days ago | License: Apache-2.0 | Module: k8s.io/kube-openapi

Index

Package Files

func ValidateModel

func ValidateModel(obj interface{}, schema proto.Schema, name string) []error

type InvalidObjectTypeError

type InvalidObjectTypeError struct {
	Path string
	Type string
}

func (InvalidObjectTypeError) Error

func (e InvalidObjectTypeError) Error() string

type InvalidTypeError

type InvalidTypeError struct {
	Path     string
	Expected string
	Actual   string
}

func (InvalidTypeError) Error

func (e InvalidTypeError) Error() string

type MissingRequiredFieldError

type MissingRequiredFieldError struct {
	Path  string
	Field string
}

func (MissingRequiredFieldError) Error

func (e MissingRequiredFieldError) Error() string

type UnknownFieldError

type UnknownFieldError struct {
	Path  string
	Field string
}

func (UnknownFieldError) Error

func (e UnknownFieldError) Error() string

type ValidationError

type ValidationError struct {
	Path string
	Err  error
}

func (ValidationError) Error

func (e ValidationError) Error() string
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier