util

package
v0.0.0-...-c5bcf32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteObject

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 HomeDir

func HomeDir() string

HomeDir returns the user's home directory

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

type Args

type Args []string

Args are command line arguments

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL