annotation

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotator

type Annotator interface {
	// Set the annotation to the object
	Set(ctx context.Context, val string) error
}

Annotator describes somewhich which can add or remove a particular annotation to a kubernetes object.

func NodeAnnotator

func NodeAnnotator(k v1.NodeInterface, nodeName, key string) Annotator

NodeAnnotator returns a new Annotator for a given node and annotation

Jump to

Keyboard shortcuts

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