labels

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	App                = Label{"app", "etok"}
	Version            = Label{"version", version.Version}
	OperatorComponent  = Component("operator")
	WorkspaceComponent = Component("workspace")
	RunComponent       = Component("run")
)

Functions

func MakeLabels

func MakeLabels(lbl ...Label) map[string]string

func SetCommonLabels

func SetCommonLabels(obj metav1.Object)

func SetLabel

func SetLabel(obj metav1.Object, lbl Label)

Types

type Label

type Label struct {
	Name, Value string
}

func Command

func Command(value string) Label

func Component

func Component(value string) Label

func Workspace

func Workspace(value string) Label

Jump to

Keyboard shortcuts

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