labels

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label struct {
	Key   string
	Value string
}

func Parse

func Parse(s string) (Label, error)

Parse parses a label. Amazingly there doesn't seem to be a function in client-go or similar that does this. There does exist an apimachinery labels.Parse but it parses label selectors not labels themselves.

func ParseAll

func ParseAll(labels []string) ([]Label, error)

ParseAll parses all the given labels and returns a collection of parsed labels

Jump to

Keyboard shortcuts

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