Documentation
¶
Overview ¶
Package labels canonicalizes case-insensitive label lists, such as CI runner labels, so services compare, deduplicate, and match them with one set of semantics.
The canonical form of a label trims surrounding whitespace and lowercases the remainder. The canonical form of a list applies that to every label, drops labels that become empty, and keeps only the first occurrence of each label while preserving order.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonicalize ¶
Canonicalize returns the canonical form of a label list.
func ContainsAll ¶
ContainsAll reports whether list carries every required label, comparing both sides canonically. Required labels whose canonical form is empty are ignored, so ContainsAll with no effective requirements is always true.
Types ¶
This section is empty.