kube-openapi: k8s.io/kube-openapi/pkg/util/proto/validation Index | Files

package validation

import "k8s.io/kube-openapi/pkg/util/proto/validation"

Index

Package Files

errors.go types.go validation.go

func ValidateModel Uses

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

type InvalidObjectTypeError Uses

type InvalidObjectTypeError struct {
    Path string
    Type string
}

func (InvalidObjectTypeError) Error Uses

func (e InvalidObjectTypeError) Error() string

type InvalidTypeError Uses

type InvalidTypeError struct {
    Path     string
    Expected string
    Actual   string
}

func (InvalidTypeError) Error Uses

func (e InvalidTypeError) Error() string

type MissingRequiredFieldError Uses

type MissingRequiredFieldError struct {
    Path  string
    Field string
}

func (MissingRequiredFieldError) Error Uses

func (e MissingRequiredFieldError) Error() string

type UnknownFieldError Uses

type UnknownFieldError struct {
    Path  string
    Field string
}

func (UnknownFieldError) Error Uses

func (e UnknownFieldError) Error() string

type ValidationError Uses

type ValidationError struct {
    Path string
    Err  error
}

func (ValidationError) Error Uses

func (e ValidationError) Error() string

Package validation imports 4 packages (graph) and is imported by 10 packages. Updated 2019-04-21. Refresh now. Tools for package owners.