Documentation ¶ Index ¶ type Label func Parse(s string) (Label, error) func ParseAll(labels []string) ([]Label, error) 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 Source Files ¶ View all Source files parse.go Click to show internal directories. Click to hide internal directories.