kubernetes/vendor/k8s.io/kube-openapi/pkg/util/proto/validation/types.go

type validationItem

type baseItem

// Errors returns the list of errors found for this item.
func (item *baseItem) Errors() []error {}

// AddValidationError wraps the given error into a ValidationError and
// attaches it to this item.
func (item *baseItem) AddValidationError(err error) {}

// AddError adds a regular (non-validation related) error to the list.
func (item *baseItem) AddError(err error) {}

// CopyErrors adds a list of errors to this item. This is useful to copy
// errors from subitems.
func (item *baseItem) CopyErrors(errs []error) {}

// Path returns the path of this item, helps print useful errors.
func (item *baseItem) Path() *proto.Path {}

type mapItem

func (item *mapItem) sortedKeys() []string {}

var _

func (item *mapItem) VisitPrimitive(schema *proto.Primitive) {}

func (item *mapItem) VisitArray(schema *proto.Array) {}

func (item *mapItem) VisitMap(schema *proto.Map) {}

func (item *mapItem) VisitKind(schema *proto.Kind) {}

func (item *mapItem) VisitArbitrary(schema *proto.Arbitrary) {}

func (item *mapItem) VisitReference(schema proto.Reference) {}

type arrayItem

var _

func (item *arrayItem) VisitPrimitive(schema *proto.Primitive) {}

func (item *arrayItem) VisitArray(schema *proto.Array) {}

func (item *arrayItem) VisitMap(schema *proto.Map) {}

func (item *arrayItem) VisitKind(schema *proto.Kind) {}

func (item *arrayItem) VisitArbitrary(schema *proto.Arbitrary) {}

func (item *arrayItem) VisitReference(schema proto.Reference) {}

type primitiveItem

var _

func (item *primitiveItem) VisitPrimitive(schema *proto.Primitive) {}

func (item *primitiveItem) VisitArray(schema *proto.Array) {}

func (item *primitiveItem) VisitMap(schema *proto.Map) {}

func (item *primitiveItem) VisitKind(schema *proto.Kind) {}

func (item *primitiveItem) VisitArbitrary(schema *proto.Arbitrary) {}

func (item *primitiveItem) VisitReference(schema proto.Reference) {}

// itemFactory creates the relevant item type/visitor based on the current yaml type.
func itemFactory(path proto.Path, v interface{}