Versions in this module Expand all Collapse all v0 v0.19.0 Jun 9, 2015 Changes in this version + type ByKey []Requirement + func (a ByKey) Len() int + func (a ByKey) Less(i, j int) bool + func (a ByKey) Swap(i, j int) + type LabelSelector []Requirement + func (lsel LabelSelector) Add(key string, operator Operator, values []string) Selector + func (lsel LabelSelector) Empty() bool + func (lsel LabelSelector) Matches(l Labels) bool + func (lsel LabelSelector) String() string + 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 Operator string + const DoubleEqualsOperator + const EqualsOperator + const ExistsOperator + const InOperator + const NotEqualsOperator + const NotInOperator + type Parser struct + type ParserContext int + const KeyAndOperator + const Values + type Requirement struct + func NewRequirement(key string, op Operator, vals util.StringSet) (*Requirement, error) + func (r *Requirement) Matches(ls Labels) bool + func (r *Requirement) String() string + type ScannedItem struct + type Selector interface + Add func(key string, operator Operator, values []string) Selector + Empty func() bool + Matches func(Labels) bool + String func() string + func Everything() Selector + func Parse(selector string) (Selector, error) + func SelectorFromSet(ls Set) Selector + type Set map[string]string + func (ls Set) AsSelector() 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 DoubleEqualsToken + const EndOfStringToken + const EqualsToken + const ErrorToken + const IdentifierToken + const InToken + const NotEqualsToken + const NotInToken + const OpenParToken