Versions in this module Expand all Collapse all v0 v0.2.0 Nov 16, 2018 v0.1.0 Nov 15, 2018 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) 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) + type Matcher interface + Matches func(v string) bool + Name func() string + func NewEqualMatcher(name, value string) Matcher + func NewMustRegexpMatcher(name, pattern string) Matcher + func NewPrefixMatcher(name, prefix string) Matcher + func NewRegexpMatcher(name, pattern string) (Matcher, error) + func Not(m Matcher) Matcher + type PrefixMatcher struct + func (m *PrefixMatcher) Matches(v string) bool + func (m *PrefixMatcher) Name() string + func (m *PrefixMatcher) Prefix() 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)