package
2.0.0+incompatible
Repository: https://github.com/gggitboy/client-go.git
Documentation: pkg.go.dev

# Functions

AreLabelsInWhiteList verifies if the provided label list is in the provided whitelist and returns true, otherwise false.
Conflicts takes 2 maps and returns true if there a key match between the maps but the value doesn't match, and returns false in other cases.
ConvertSelectorToLabelsMap converts selector string to labels map and validates keys and values.
Equals returns true if the given maps are equal.
Everything returns a selector that matches all labels.
FormatLables convert label map into plain string.
Merge combines given maps, and does not check for any conflicts between the maps.
NewRequirement is the constructor for a Requirement.
No description provided by the author
Nothing returns a selector that matches no labels.
Parse takes a string representing a selector and returns a selector object, or an error.
ParseToRequirements takes a string representing a selector and returns a list of requirements.
SelectorFromSet returns a Selector which will match exactly the given Set.
SelectorFromValidatedSet returns a Selector which will match exactly the given Set.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
to represent keys and values.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Lexer represents the Lexer struct for label selector.
Parser data structure contains the label selector parser data structure.
Requirement contains values, a key, and an operator that relates the key and values.
The item produced by the lexer.

# Interfaces

Labels allows you to present labels independently from their storage.
Selector represents a label selector.

# Type aliases

Sort by key to obtain determisitic parser.
Parser context 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)'.
Requirements is AND of all requirements.
Set is a map of label:value.
constants definition for lexer token.