kubernetes/vendor/sigs.k8s.io/kustomize/kyaml/yaml/kfns.go

type AnnotationClearer

func (c AnnotationClearer) Filter(rn *RNode) (*RNode, error) {}

func ClearAnnotation(key string) AnnotationClearer {}

// ClearEmptyAnnotations clears the keys, annotations
// and metadata if they are empty/null
func ClearEmptyAnnotations(rn *RNode) error {}

type k8sMetaSetter

func (s k8sMetaSetter) Filter(rn *RNode) (*RNode, error) {}

func SetK8sName(value string) k8sMetaSetter {}

func SetK8sNamespace(value string) k8sMetaSetter {}

type AnnotationSetter

func (s AnnotationSetter) Filter(rn *RNode) (*RNode, error) {}

func SetAnnotation(key, value string) AnnotationSetter {}

type AnnotationGetter

// AnnotationGetter returns the annotation value.
// Returns "", nil if the annotation does not exist.
func (g AnnotationGetter) Filter(rn *RNode) (*RNode, error) {}

func GetAnnotation(key string) AnnotationGetter {}

type LabelSetter

func (s LabelSetter) Filter(rn *RNode) (*RNode, error) {}

func addMetadataNode(rn *RNode, field, key string, v *RNode) (*RNode, error) {}

func SetLabel(key, value string) LabelSetter {}