Versions in this module Expand all Collapse all v2 v2.13.1 Oct 8, 2023 Changes in this version + func Compare(a, b Labels) int + type EqualMatcher struct + func (m EqualMatcher) Matches(v string) bool + func (m EqualMatcher) Name() string + func (m EqualMatcher) String() string + func (m EqualMatcher) Value() string + type Label struct + Name string + Value string + type Labels []Label + func FromMap(m map[string]string) Labels + func FromStrings(ss ...string) Labels + func New(ls ...Label) Labels + func ReadLabels(fn string, n int) ([]Labels, error) + func (ls Labels) Equals(o Labels) bool + func (ls Labels) Get(name string) string + func (ls Labels) Hash() uint64 + func (ls Labels) Len() int + func (ls Labels) Less(i, j int) bool + func (ls Labels) Map() map[string]string + func (ls Labels) String() string + func (ls Labels) Swap(i, j int) + func (ls Labels) WithoutEmpty() Labels + type Matcher interface + Matches func(v string) bool + Name func() string + String func() string + func NewEqualMatcher(name, value string) Matcher + func NewMustRegexpMatcher(name, pattern string) Matcher + func NewRegexpMatcher(name, pattern string) (Matcher, error) + func Not(m Matcher) Matcher + type NotMatcher struct + func (m NotMatcher) Matches(v string) bool + func (m NotMatcher) String() string + type RegexpMatcher struct + func (m RegexpMatcher) Matches(v string) bool + func (m RegexpMatcher) Name() string + func (m RegexpMatcher) String() string + func (m RegexpMatcher) Value() string + type Selector []Matcher + func (s Selector) Matches(labels Labels) bool + type Slice []Labels + func (s Slice) Len() int + func (s Slice) Less(i, j int) bool + func (s Slice) Swap(i, j int)