labels

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	App                = Label{"app", "etok"}
	Version            = Label{"version", version.Version}
	Commit             = Label{"commit", version.Commit}
	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 NewLabel added in v0.0.4

func NewLabel(name, value string) Label

A valid label must be an empty string or consist of alphanumeric characters , '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')

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