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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnnotationsAnnotation

func GetAnnotationsAnnotation(o api.Metadata) (map[string]string, error)

func GetClassLabel

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

func GetLabelsAnnotation

func GetLabelsAnnotation(o api.Metadata) (map[string]string, error)

func GetObjectMetadata

func GetObjectMetadata(o api.Metadata) (*orimeta.ObjectMetadata, error)

func IsManagedBy

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

func SetAnnotationsAnnotation

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

func SetClassLabel

func SetClassLabel(o api.Object, class string)

func SetLabelsAnnotation

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

func SetManagerLabel

func SetManagerLabel(o api.Object, manager string)

func SetObjectMetadata

func SetObjectMetadata(o api.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