Documentation ¶
Index ¶
- func BoolToAnyJSON(b bool) lsv1alpha1.AnyJSON
- func ContainsReference(refList []lssv1alpha1.ObjectReference, ref *lssv1alpha1.ObjectReference) bool
- func GetMapValues[E comparable, F any](m map[E]F) []F
- func HasDeleteWithoutUninstallAnnotation(obj metav1.Object) bool
- func HasLabel(obj metav1.Object, lab string) bool
- func HasLabelWithValue(obj metav1.Object, name string, value string) bool
- func HasOperationAnnotation(object client.Object, operation string) bool
- func IntToAnyJSON(i int) lsv1alpha1.AnyJSON
- func NewUncachedClient(config *rest.Config, options client.Options) (client.Client, error)
- func RemoveOperationAnnotation(object client.Object)
- func RemoveReference(refList []lssv1alpha1.ObjectReference, ref *lssv1alpha1.ObjectReference) []lssv1alpha1.ObjectReference
- func SetOperationAnnotation(object client.Object, operation string)
- func StringToAnyJSON(s string) lsv1alpha1.AnyJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToAnyJSON ¶
func BoolToAnyJSON(b bool) lsv1alpha1.AnyJSON
BoolToAnyJSON marshals a boolean as an AnyJSON object.
func ContainsReference ¶
func ContainsReference(refList []lssv1alpha1.ObjectReference, ref *lssv1alpha1.ObjectReference) bool
ContainsReference checks whether the object reference list contains the specified object reference.
func GetMapValues ¶
func GetMapValues[E comparable, F any](m map[E]F) []F
GetMapValues returns a slice with the values of the given map.
func HasDeleteWithoutUninstallAnnotation ¶
HasDeleteWithoutUninstallAnnotation returns true only if the given object has the 'landscaper.gardener.cloud/delete-without-uninstall' annotation and its value is 'true'.
func HasOperationAnnotation ¶
HasOperationAnnotation returns true if the object has provided operation annotation set.
func IntToAnyJSON ¶
func IntToAnyJSON(i int) lsv1alpha1.AnyJSON
IntToAnyJSON marshals an integer as an AnyJSON object.
func NewUncachedClient ¶
func RemoveOperationAnnotation ¶
RemoveOperationAnnotation removes the operation annotation if it exists.
func RemoveReference ¶
func RemoveReference(refList []lssv1alpha1.ObjectReference, ref *lssv1alpha1.ObjectReference) []lssv1alpha1.ObjectReference
RemoveReference removes the given object reference from the object reference list if contained.
func SetOperationAnnotation ¶
SetOperationAnnotation sets the provided operation annotation.
func StringToAnyJSON ¶
func StringToAnyJSON(s string) lsv1alpha1.AnyJSON
StringToAnyJSON marshals a string as an AnyJSON object.
Types ¶
This section is empty.