Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OpEq represents the Equals operator. OpEq = Op("eq") // OpNeq represents the Not Equal operator. OpNeq = Op("neq") // OpRegex represents the Regular Expression match operator. OpRegex = Op("regex") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Selector ¶
type Selector struct { // Key is the key of the label that could potentially match the selector. Key Key `json:"label"` // Target is the argument to the operator. In the case of the // Eq operator, it is the exact string that needs to match the value. Target string `json:"target"` // Op is the operator. Op Op `json:"op"` // contains filtered or unexported fields }
Selector is one selector on a label Set.
type Set ¶
Set is a short name for map[Key]Value. Note that it is not thread-safe.
func NewSetFromMap ¶
NewSetFromMap tries to create a Set from an input of type map[string]string. It is used to verify user input and create a Set.
Click to show internal directories.
Click to hide internal directories.