annotations

package
v0.2.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package annotations implements annotation helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAnnotations

func AddAnnotations(o metav1.Object, desired map[string]string) bool

AddAnnotations sets the desired annotations on the object and returns true if the annotations have changed.

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 HasSkipRemediation

func HasSkipRemediation(o metav1.Object) bool

HasSkipRemediation returns true if the object has the `skip-remediation` annotation.

func HasWithPrefix

func HasWithPrefix(prefix string, annotations map[string]string) bool

HasWithPrefix returns true if at least one of the annotations has the prefix specified.

func IsPaused

func IsPaused(obj metav1.Object) bool

IsPaused returns true if the object has the `paused` 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