apiutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnnotationsAnnotation

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

func GetClassLabel

func GetClassLabel(o metav1.Object) (string, bool)

func GetLabelsAnnotation

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

func GetObjectMetadata

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

func IsManagedBy

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

func SetAnnotationsAnnotation

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

func SetBucketManagerLabel

func SetBucketManagerLabel(bucket *objectbucketv1alpha1.ObjectBucketClaim, manager string)

func SetClassLabel

func SetClassLabel(o metav1.Object, class string)

func SetLabelsAnnotation

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

func SetObjectMetadata

func SetObjectMetadata(o metav1.Object, metadata *orimeta.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