Versions in this module Expand all Collapse all v1 v1.5.0 Oct 23, 2016 Changes in this version + func FormatLabels(labelMap map[string]string) string + type ByKey []Requirement + func (a ByKey) Len() int + func (a ByKey) Less(i, j int) bool + func (a ByKey) Swap(i, j int) + type Labels interface + Get func(label string) (value string) + Has func(label string) (exists bool) + type Lexer struct + func (l *Lexer) Lex() (tok Token, lit string) + type Parser struct + type ParserContext int + const KeyAndOperator + const Values + type Requirement struct + func NewRequirement(key string, op selection.Operator, vals sets.String) (*Requirement, error) + func ParseToRequirements(selector string) ([]Requirement, error) + func (r *Requirement) Key() string + func (r *Requirement) Matches(ls Labels) bool + func (r *Requirement) Operator() selection.Operator + func (r *Requirement) String() string + func (r *Requirement) Values() sets.String + type Requirements []Requirement + type ScannedItem struct + type Selector interface + Add func(r ...Requirement) Selector + Empty func() bool + Matches func(Labels) bool + Requirements func() (requirements Requirements, selectable bool) + String func() string + func Everything() Selector + func NewSelector() Selector + func Nothing() Selector + func Parse(selector string) (Selector, error) + func SelectorFromSet(ls Set) Selector + func SelectorFromValidatedSet(ls Set) Selector + type Set map[string]string + func (ls Set) AsSelector() Selector + func (ls Set) AsSelectorPreValidated() Selector + func (ls Set) Get(label string) string + func (ls Set) Has(label string) bool + func (ls Set) String() string + type Token int + const ClosedParToken + const CommaToken + const DoesNotExistToken + const DoubleEqualsToken + const EndOfStringToken + const EqualsToken + const ErrorToken + const GreaterThanToken + const IdentifierToken + const InToken + const LessThanToken + const NotEqualsToken + const NotInToken + const OpenParToken