Documentation ¶
Index ¶
- func AddAnnotation(obj metav1.Object, key, value string)
- func AddLabel(obj metav1.Object, key, value string)
- func CopyAnnotation(fromObj, toObj metav1.Object, key string) bool
- func CopyAnnotationsPredicate(fromObj, toObj metav1.Object, predicate AnnotationPredicate) bool
- func GetAnnotation(obj metav1.Object, key string) string
- func HasAnnotation(obj metav1.Object, key string) bool
- func HasAnnotationsContaining(obj metav1.Object, key string) (bool, map[string]string)
- func HasLabel(obj metav1.Object, key string) bool
- func HasLabelsContaining(obj metav1.Object, key string) (bool, map[string]string)
- func RemoveAnnotation(obj metav1.Object, key string)
- func RemoveLabel(obj metav1.Object, key string)
- type AnnotationPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnnotation ¶
func CopyAnnotation ¶
CopyAnnotation copies an annotation with key `key` from `fromObj` into `toObj` Returns `true` if the annotation was found and copied, `false` otherwise
func CopyAnnotationsPredicate ¶
func CopyAnnotationsPredicate(fromObj, toObj metav1.Object, predicate AnnotationPredicate) bool
CopyAnnotationsPredicate copies any annotation from fromObj into toObj annotations that fullfils the given predicate. Returns true if at least one annotation was copied
func HasLabelsContaining ¶
func RemoveAnnotation ¶
func RemoveLabel ¶
Types ¶
type AnnotationPredicate ¶
func KeyPredicate ¶
func KeyPredicate(predicate func(key string) bool) AnnotationPredicate
Click to show internal directories.
Click to hide internal directories.