Documentation
¶
Index ¶
- func AddAnnotation(obj metav1.Object, k, v string) bool
- func AddFinalizer(obj metav1.Object, finalizer string) bool
- func AddLabel(obj metav1.Object, k, v string) bool
- func ContainsAnnotation(obj metav1.Object, key string) bool
- func ContainsFinalizer(obj metav1.Object, finalizer string) bool
- func ContainsLabel(obj metav1.Object, key string) bool
- func GetAnnotation(obj metav1.Object, key string) string
- func GetLabel(obj metav1.Object, key string) string
- func ParseYAMLDocuments(contents []byte) ([][]byte, error)
- func RemoveFinalizer(obj metav1.Object, finalizer string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnnotation ¶ added in v0.1.1
AddAnnotation adds an annotation to the object, returns true if the object's annotations are updated.
func AddFinalizer ¶
AddFinalizer adds a finalizer to the object, returns true if the object's finalizers are updated.
func AddLabel ¶ added in v0.1.1
AddLabel adds a label to the object, returns true if the object's labels are updated.
func ContainsAnnotation ¶
ContainsAnnotation determines whether the object contains an annotation.
func ContainsFinalizer ¶
ContainsFinalizer determines whether the object contains a finalizer.
func ContainsLabel ¶
ContainsLabel determines whether the object contains a label.
func GetAnnotation ¶
GetAnnotation returns the annotation value of the object.
func ParseYAMLDocuments ¶ added in v0.6.0
ParseYAMLDocuments parses YAML documents in a file into separate ones. eg: input:
apiVersion: v1 kind: Namespace metadata: name: test --- apiVersion: v1 kind: Namespace metadata: name: test2
output:
apiVersion: v1 kind: Namespace metadata: name: test apiVersion: v1 kind: Namespace metadata: name: test2
Types ¶
This section is empty.