type AnnotationKey …
const internalPrefix …
const IndexAnnotation …
const PathAnnotation …
const SeqIndentAnnotation …
const IdAnnotation …
const LegacyIndexAnnotation …
const LegacyPathAnnotation …
const LegacyIdAnnotation …
const InternalAnnotationsMigrationResourceIDAnnotation …
func GetFileAnnotations(rn *yaml.RNode) (string, string, error) { … }
func GetIdAnnotation(rn *yaml.RNode) string { … }
func CopyLegacyAnnotations(rn *yaml.RNode) error { … }
func copyAnnotations(meta yaml.ResourceMeta, rn *yaml.RNode, legacyKey string, newKey string) error { … }
func ErrorIfMissingAnnotation(nodes []*yaml.RNode, keys ...AnnotationKey) error { … }
func CreatePathAnnotationValue(dir string, m yaml.ResourceMeta) string { … }
func DefaultPathAndIndexAnnotation(dir string, nodes []*yaml.RNode) error { … }
func DefaultPathAnnotation(dir string, nodes []*yaml.RNode) error { … }
func Map(nodes []*yaml.RNode, fn func(*yaml.RNode) (*yaml.RNode, error)) ([]*yaml.RNode, error) { … }
func MapMeta(nodes []*yaml.RNode, fn func(*yaml.RNode, yaml.ResourceMeta) (*yaml.RNode, error)) (
[]*yaml.RNode, error) { … }
func SortNodes(nodes []*yaml.RNode) error { … }
func CopyInternalAnnotations(src *yaml.RNode, dst *yaml.RNode, exclusions ...AnnotationKey) error { … }
func ConfirmInternalAnnotationUnchanged(r1 *yaml.RNode, r2 *yaml.RNode, exclusions ...AnnotationKey) error { … }
func GetInternalAnnotations(rn *yaml.RNode) map[string]string { … }
func stringSliceContains(slice []string, str string) bool { … }