annotations

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(obj metav1.Object, name string) (value string, found bool)

Get will get the value of the supplied annotation.

func Has

func Has(obj metav1.Object, name string) bool

Has returns true if the supplied object has the supplied annotation.

func Set

func Set(obj metav1.Object, name, value string)

Set will set the value of an annotation on the supplied object. If there is no annotation it will be created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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