var _ … type Filter … func (fltr Filter) Filter(obj *yaml.RNode) (*yaml.RNode, error) { … } // Recursively called. func (fltr Filter) filter(obj *yaml.RNode) error { … } // handleMap calls filter on the map field matching the next path element func (fltr Filter) handleMap(obj *yaml.RNode) error { … } // seq calls filter on all sequence elements func (fltr Filter) handleSequence(obj *yaml.RNode) error { … } // isSequenceField returns true if the path element is for a sequence field. // isSequence also returns the path element with the '[]' suffix trimmed func isSequenceField(name string) (string, bool) { … } // isMatchGVK returns true if the fs.GVK matches the obj GVK. func isMatchGVK(fs types.FieldSpec, obj *yaml.RNode) bool { … }