Documentation ¶
Overview ¶
Package label contains function managing labels and selectors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitSelectors ¶
Types ¶
type Claims ¶
Claims provide a facility for prioritizing jobs execution onto consumers with matching claims. Queues can be configured with a claim window, a duration during which only consumers with matching claims can dequeue the job. After the duration elapses, dequeue behavior returns to normal.
func ParseClaims ¶
type Labels ¶
Labels can be used to filter queues. Their format is: "KEY=VALUE[,KEY=VALUE...]"
func ParseStringArray ¶
ParseStringArray reads an array of formatted labels, such as commandline flags.
type Selectors ¶
type Selectors struct { Names []string `json:"names,omitempty"` NotNames []string `json:"not_names,omitempty"` In map[string][]string `json:"in,omitempty"` NotIn map[string][]string `json:"not_in,omitempty"` }
Selectors can be used to filter queues based on their labels.
func ParseSelectors ¶
Click to show internal directories.
Click to hide internal directories.