annotations

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package annotations provides utility functions for working with annotations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v2.4.0

func Delete(obj metav1.Object, name string)

Delete will delete the supplied annotation.

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