Documentation ¶
Index ¶
- func DeleteObject(c client.Client, ctx context.Context, gvk schema.GroupVersionKind, ...) (*unstructured.Unstructured, error)
- func HasAnnotation(u *unstructured.Unstructured, key string) bool
- func HomeDir() string
- func MatchAnnotations(u *unstructured.Unstructured, annotations map[string]string) bool
- func ObjectExist(c client.Client, ctx context.Context, u *unstructured.Unstructured) (bool, error)
- type Args
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteObject ¶
func DeleteObject(c client.Client, ctx context.Context, gvk schema.GroupVersionKind, ns, nm string) ( *unstructured.Unstructured, error)
DeleteObject delete an object given a client and Group,Version,Kind,Name,Namespace of an object
func HasAnnotation ¶
func HasAnnotation(u *unstructured.Unstructured, key string) bool
HasAnnotation checks if an unstructured has a given annotation key
func MatchAnnotations ¶
func MatchAnnotations(u *unstructured.Unstructured, annotations map[string]string) bool
MatchAnnotations checks if an unstructured matches a key, value pair in its annotation
func ObjectExist ¶
func ObjectExist(c client.Client, ctx context.Context, u *unstructured.Unstructured) (bool, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.