Documentation
¶
Overview ¶
Package kls provides a light-weight parser for Kubernetes label selectors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Functions ¶
This section is empty.
Types ¶
type Requirement ¶
type Requirement struct { Label string Op string Values []string // contains filtered or unexported fields }
A Requirement represents one predicate parsed from a selector. For example, selector "x=y,z" has two requirements: "x=y" and "z". Op is the literal operator, or "exists" (p) or "notexists" (!p).
func Parse ¶
func Parse(selector string) ([]Requirement, error)
Click to show internal directories.
Click to hide internal directories.