package
0.8.7
Repository: https://github.com/coding-hui/common.git
Documentation: pkg.go.dev

# Functions

AndSelectors creates a selector that is the logical AND of all the given selectors.
EscapeValue escapes an arbitrary literal string for use as a fieldSelector value.
Everything returns a selector that matches all fields.
Nothing returns a selector that matches no fields.
OneTermEqualSelector returns an object that matches objects where one field/field equals one value.
OneTermNotEqualSelector returns an object that matches objects where one field/field does not equal one value.
ParseAndTransformSelector parses the selector and runs them through the given TransformFunc.
ParseSelector takes a string representing a selector and returns an object suitable for matching, or an error.
ParseSelectorOrDie takes a string representing a selector and returns an object suitable for matching, or panic when an error occur.
SelectorFromSet returns a Selector which will match exactly the given Set.
UnescapeValue unescapes a fieldSelector value and returns the original literal value.

# Structs

InvalidEscapeSequence indicates an error occurred unescaping a field selector.
Requirement contains a field, a value, and an operator that relates the field and value.
UnescapedRune indicates an error occurred unescaping a field selector.

# Interfaces

Fields allows you to present fields independently from their storage.
Selector represents a field selector.

# Type aliases

Requirements is AND of all requirements.
Set is a map of field:value.
TransformFunc transforms selectors.