apiutils

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAnnotationsAnnotation

func DecodeAnnotationsAnnotation(data string) (map[string]string, error)

func DecodeLabelsAnnotations

func DecodeLabelsAnnotations(data string) (map[string]string, error)

func EncodeAnnotationsAnnotation

func EncodeAnnotationsAnnotation(annotations map[string]string) (string, error)

func EncodeLabelsAnnotation

func EncodeLabelsAnnotation(labels map[string]string) (string, error)

func GetAnnotationsAnnotation

func GetAnnotationsAnnotation(o metav1.Object) (map[string]string, error)

func GetLabelsAnnotation

func GetLabelsAnnotation(o metav1.Object) (map[string]string, error)

func GetObjectMetadata

func GetObjectMetadata(o metav1.Object) (*irimeta.ObjectMetadata, error)

func IsCreated

func IsCreated(o metav1.Object) bool

func IsManagedBy

func IsManagedBy(o metav1.Object, manager string) bool

func PatchControlledBy

func PatchControlledBy(ctx context.Context, c client.Client, owner, controlled client.Object) error

func PatchCreated

func PatchCreated(ctx context.Context, c client.Client, o client.Object) error

func PatchOwnedBy

func PatchOwnedBy(ctx context.Context, c client.Client, owner, obj client.Object) error

func SetAnnotationsAnnotation

func SetAnnotationsAnnotation(o metav1.Object, annotations map[string]string) error

func SetCreatedLabel

func SetCreatedLabel(o metav1.Object)

func SetLabelsAnnotation

func SetLabelsAnnotation(o metav1.Object, labels map[string]string) error

func SetObjectMetadata

func SetObjectMetadata(o metav1.Object, metadata *irimeta.ObjectMetadata) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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