type Selector …
type nothingSelector …
func (n nothingSelector) Matches(_ Fields) bool { … }
func (n nothingSelector) Empty() bool { … }
func (n nothingSelector) String() string { … }
func (n nothingSelector) Requirements() Requirements { … }
func (n nothingSelector) DeepCopySelector() Selector { … }
func (n nothingSelector) RequiresExactMatch(field string) (value string, found bool) { … }
func (n nothingSelector) Transform(fn TransformFunc) (Selector, error) { … }
func Nothing() Selector { … }
func Everything() Selector { … }
type hasTerm …
func (t *hasTerm) Matches(ls Fields) bool { … }
func (t *hasTerm) Empty() bool { … }
func (t *hasTerm) RequiresExactMatch(field string) (value string, found bool) { … }
func (t *hasTerm) Transform(fn TransformFunc) (Selector, error) { … }
func (t *hasTerm) Requirements() Requirements { … }
func (t *hasTerm) String() string { … }
func (t *hasTerm) DeepCopySelector() Selector { … }
type notHasTerm …
func (t *notHasTerm) Matches(ls Fields) bool { … }
func (t *notHasTerm) Empty() bool { … }
func (t *notHasTerm) RequiresExactMatch(field string) (value string, found bool) { … }
func (t *notHasTerm) Transform(fn TransformFunc) (Selector, error) { … }
func (t *notHasTerm) Requirements() Requirements { … }
func (t *notHasTerm) String() string { … }
func (t *notHasTerm) DeepCopySelector() Selector { … }
type andTerm …
func (t andTerm) Matches(ls Fields) bool { … }
func (t andTerm) Empty() bool { … }
func (t andTerm) RequiresExactMatch(field string) (string, bool) { … }
func (t andTerm) Transform(fn TransformFunc) (Selector, error) { … }
func (t andTerm) Requirements() Requirements { … }
func (t andTerm) String() string { … }
func (t andTerm) DeepCopySelector() Selector { … }
func SelectorFromSet(ls Set) Selector { … }
var valueEscaper …
func EscapeValue(s string) string { … }
type InvalidEscapeSequence …
func (i InvalidEscapeSequence) Error() string { … }
type UnescapedRune …
func (i UnescapedRune) Error() string { … }
func UnescapeValue(s string) (string, error) { … }
func ParseSelectorOrDie(s string) Selector { … }
func ParseSelector(selector string) (Selector, error) { … }
func ParseAndTransformSelector(selector string, fn TransformFunc) (Selector, error) { … }
type TransformFunc …
func splitTerms(fieldSelector string) []string { … }
const notEqualOperator …
const doubleEqualOperator …
const equalOperator …
var termOperators …
func splitTerm(term string) (lhs, op, rhs string, ok bool) { … }
func parseSelector(selector string, fn TransformFunc) (Selector, error) { … }
func OneTermEqualSelector(k, v string) Selector { … }
func OneTermNotEqualSelector(k, v string) Selector { … }
func AndSelectors(selectors ...Selector) Selector { … }