Documentation
¶
Overview ¶
Package labels matches Kubernetes-style metadata labels via `key` / `key=value` selectors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
Selector matches a metadata label by key, and optionally by exact value.
func FirstMatch ¶
FirstMatch returns the first selector matching the given label set, if any.
func ParseSelectors ¶
ParseSelectors parses `key` / `key=value` specs into selectors. A bare `key` matches the label regardless of its value; `key=value` requires an exact match. An empty key is rejected.
Click to show internal directories.
Click to hide internal directories.