Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByKey ¶
type ByKey []Requirement
ByKey sorts requirements by key to obtain deterministic parser
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) GetListIndex ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer represents the Lexer struct for label selector. It contains necessary informationt to tokenize the input string
type ParserContext ¶
type ParserContext int
ParserContext represents context during parsing: some literal for example 'in' and 'notin' can be recognized as operator for example 'x in (a)' but it can be recognized as value for example 'value in (in)'
const ( // KeyAndOperator represents key and operator KeyAndOperator ParserContext = iota // Values represents values Values )
type Requirement ¶
type Requirement struct {
// contains filtered or unexported fields
}
func NewRequirement ¶
func (*Requirement) Fields ¶
func (r *Requirement) Fields() []Field
func (*Requirement) Operator ¶
func (r *Requirement) Operator() selection.Operator
func (*Requirement) String ¶
func (r *Requirement) String() string
func (*Requirement) Values ¶
func (r *Requirement) Values() sets.String
type Requirements ¶
type Requirements []Requirement
type ScannedItem ¶
type ScannedItem struct {
// contains filtered or unexported fields
}
ScannedItem contains the Token and the literal produced by the lexer.
type Selector ¶
type Selector interface { Empty() bool String() string // Add adds requirements to the Selector Add(r ...Requirement) Selector Requirements() (requirements Requirements, selectable bool) // Make a deep copy of the selector. DeepCopySelector() Selector }
Selector represents a label selector
Click to show internal directories.
Click to hide internal directories.