Versions in this module Expand all Collapse all v1 v1.10.11 Jan 25, 2021 v1.10.10 Jan 25, 2021 Changes in this version + const AlertName + const BucketLabel + const InstanceName + const MetricName + func Compare(a, b Labels) int + func Equal(ls, o Labels) bool + type Builder struct + func NewBuilder(base Labels) *Builder + func (b *Builder) Del(ns ...string) *Builder + func (b *Builder) Labels() Labels + func (b *Builder) Reset(base Labels) + func (b *Builder) Set(n, v string) *Builder + type FastRegexMatcher struct + func NewFastRegexMatcher(v string) (*FastRegexMatcher, error) + func (m *FastRegexMatcher) GetRegexString() string + func (m *FastRegexMatcher) MatchString(s string) bool + 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 (ls *Labels) UnmarshalJSON(b []byte) error + func (ls *Labels) UnmarshalYAML(unmarshal func(interface{}) error) error + func (ls Labels) Bytes(buf []byte) []byte + func (ls Labels) Copy() Labels + func (ls Labels) Get(name string) string + func (ls Labels) Has(name string) bool + func (ls Labels) HasDuplicateLabelNames() (string, bool) + func (ls Labels) Hash() uint64 + func (ls Labels) HashForLabels(b []byte, names ...string) (uint64, []byte) + func (ls Labels) HashWithoutLabels(b []byte, names ...string) (uint64, []byte) + func (ls Labels) Len() int + func (ls Labels) Less(i, j int) bool + func (ls Labels) Map() map[string]string + func (ls Labels) MarshalJSON() ([]byte, error) + func (ls Labels) MarshalYAML() (interface{}, error) + func (ls Labels) MatchLabels(on bool, names ...string) Labels + func (ls Labels) String() string + func (ls Labels) Swap(i, j int) + func (ls Labels) WithLabels(names ...string) Labels + func (ls Labels) WithoutEmpty() Labels + func (ls Labels) WithoutLabels(names ...string) Labels + type MatchType int + const MatchEqual + const MatchNotEqual + const MatchNotRegexp + const MatchRegexp + func (m MatchType) String() string + type Matcher struct + Name string + Type MatchType + Value string + func MustNewMatcher(mt MatchType, name, val string) *Matcher + func NewMatcher(t MatchType, n, v string) (*Matcher, error) + func (m *Matcher) GetRegexString() string + func (m *Matcher) Inverse() (*Matcher, error) + func (m *Matcher) Matches(s string) bool + func (m *Matcher) String() string