type LegacyFilter … var _ … func (lf LegacyFilter) Filter(nodes []*yaml.RNode) ([]*yaml.RNode, error) { … } func (lf LegacyFilter) filter(node *yaml.RNode) (*yaml.RNode, error) { … } type fieldCallback … type findFieldsFilter … func (f findFieldsFilter) Filter(obj *yaml.RNode) (*yaml.RNode, error) { … } func (f findFieldsFilter) walk(node *yaml.RNode) error { … } func checkImageTagsFn(imageTag types.Image) fieldCallback { … }