Returns true iff a component selector uses the recursive glob.
Assumes the selector has already been validated.
Evaluates a component moniker against a single selector, returning
True if the selector matches the component, else false.
Evaluates a component moniker against a list of selectors, returning
all of the selectors which are matches for that moniker.
Evaluates a component moniker against a list of component selectors, returning
all of the component selectors which are matches for that moniker.
Match a selector against a target string.
Converts an unparsed component selector string into a ComponentSelector.
Parses a log severity selector of the form component_selector#SEVERITY
. For example:
core/foo#DEBUG.
Parses a log severity selector of the form component_selector#SEVERITY
or just SEVERITY
.
For example: core/foo#DEBUG
or INFO
.
Converts an unparsed Inspect selector into a ComponentSelector and TreeSelector.
Remove any comments process a quoted line.
Loads all the selectors in the given directory.
Converts an unparsed tree selector string into a TreeSelector.
Sanitizes a moniker raw string such that it can be used in a selector.
Monikers have a restricted set of characters a-z
, 0-9
, _
, .
, -
.
Each moniker segment is separated by a \
. Segments for collections also contain :
.
That :
will be escaped.
Sanitizes raw strings from the system such that they align with the
special-character and escaping semantics of the Selector format.
Format a |Selector| as a string.
Extracts and validates or parses a selector from a SelectorArgument
.
Converts a string into a vector of string tokens representing the unparsed
string delimited by the provided delimiter, excluded escaped delimiters.