Documentation
¶
Index ¶
- func AddAnnotation(obj metav1.Object, key, value string)
- func AddFinalizer(obj metav1.Object, finalizer 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 HasFinalizer(obj metav1.Object, finalizer string) bool
- func HasFinalizersContaining(obj metav1.Object, key string) (bool, []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 RemoveFinalizer(obj metav1.Object, finalizer string)
- func RemoveLabel(obj metav1.Object, key string)
- type AnnotationPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnnotation ¶
func AddFinalizer ¶
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 HasFinalizersContaining ¶
func HasLabelsContaining ¶
func RemoveAnnotation ¶
func RemoveFinalizer ¶
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.