# Functions
AreLabelsInWhiteList verfies if the provided label list is in 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 does't match, and returns false in other case.
ConvertSelectorToLabelsMap converts selector string to labels map and validates keys and values.
Everything returns a selector that matches all labels.
FormatLabels convert label map into plain string.
Merge combines given maps, and does't check for any conflicts between the maps.
NewRequirement is the constructor for a Requirement.
No description provided by the author
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 cantains values, a key, and an operator that relates the key and values.
The item produced by the lexer.
# Type aliases
No description provided by the author
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.