kubernetes/staging/src/k8s.io/kubectl/pkg/explain/field_lookup.go

type fieldLookup

// SaveLeafSchema is used to detect if we are done walking the path, and
// saves the schema as a match.
func (f *fieldLookup) SaveLeafSchema(schema proto.Schema) bool {}

// VisitArray is mostly a passthrough.
func (f *fieldLookup) VisitArray(a *proto.Array) {}

// VisitMap is mostly a passthrough.
func (f *fieldLookup) VisitMap(m *proto.Map) {}

// VisitPrimitive stops the operation and returns itself as the found
// schema, even if it had more path to walk.
func (f *fieldLookup) VisitPrimitive(p *proto.Primitive) {}

// VisitKind unstacks fields as it finds them.
func (f *fieldLookup) VisitKind(k *proto.Kind) {}

func (f *fieldLookup) VisitArbitrary(a *proto.Arbitrary) {}

// VisitReference is mostly a passthrough.
func (f *fieldLookup) VisitReference(r proto.Reference) {}

// LookupSchemaForField looks for the schema of a given path in a base schema.
func LookupSchemaForField(schema proto.Schema, path []string) (proto.Schema, error) {}