Returns true iff a component selector uses the recursive glob.
Assumes the selector has already been validated.
Match a selector against a target string.
Checks whether or not a given tree_name
is present in the selector’s
tree-name-filter list.
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.
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
.