Versions in this module Expand all Collapse all v0 v0.1.0 Nov 22, 2026 Changes in this version + func Conflicts(labels1, labels2 Set) bool + func Equals(labels1, labels2 Set) bool + func FormatLabels(labelMap map[string]string) string + func MatchesNothing(selector Selector) bool + 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) + Lookup func(label string) (value 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 []string, opts ...field.PathOption) (*Requirement, error) + func ParseToRequirements(selector string, opts ...field.PathOption) ([]Requirement, error) + func (in *Requirement) DeepCopy() *Requirement + func (in *Requirement) DeepCopyInto(out *Requirement) + 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 + func (r *Requirement) ValuesUnsorted() []string + func (r Requirement) Equal(x Requirement) bool + type Requirements []Requirement + func (r Requirements) String() string + type ScannedItem struct + type Selector interface + Add func(r ...Requirement) Selector + DeepCopySelector func() Selector + Empty func() bool + Matches func(Labels) bool + Requirements func() (requirements Requirements, selectable bool) + RequiresExactMatch func(label string) (value string, found bool) + String func() string + func Everything() Selector + func NewSelector() Selector + func Nothing() Selector + func Parse(selector string, opts ...field.PathOption) (Selector, error) + func SelectorFromSet(ls Set) Selector + func SelectorFromValidatedSet(ls Set) Selector + func ValidatedSelectorFromSet(ls Set) (Selector, error) + type Set map[string]string + func ConvertSelectorToLabelsMap(selector string, opts ...field.PathOption) (Set, error) + func Merge(labels1, labels2 Set) Set + func (ls Set) AsSelector() Selector + func (ls Set) AsSelectorPreValidated() Selector + func (ls Set) AsValidatedSelector() (Selector, error) + func (ls Set) Get(label string) string + func (ls Set) Has(label string) bool + func (ls Set) Lookup(label string) (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 + type ValidatedSetSelector Set + func (s ValidatedSetSelector) Add(r ...Requirement) Selector + func (s ValidatedSetSelector) DeepCopySelector() Selector + func (s ValidatedSetSelector) Empty() bool + func (s ValidatedSetSelector) Matches(labels Labels) bool + func (s ValidatedSetSelector) Requirements() (requirements Requirements, selectable bool) + func (s ValidatedSetSelector) RequiresExactMatch(label string) (value string, found bool) + func (s ValidatedSetSelector) String() string