labels

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package labels contains logic for parsing label filters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLabel

func ParseLabel(label string) (include string, exclude string)

ParseLabel parses a single label (without commas) into an include or exclude string. Returns the include label (if any) and the exclude label (if any).

func ParseLabelFilter

func ParseLabelFilter(filter string) (include []string, exclude []string)

ParseLabelFilter parses a comma-separated label filter string into lists of labels to include and exclude. It resolves wildcards so that if any inclusion rule is `*`, the included labels list evaluates simply to `["*"]`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL