MCPcopy
hub / github.com/prometheus/prometheus / StringMatcher

Interface StringMatcher

model/labels/regexp.go:466–468  ·  view source on GitHub ↗

StringMatcher is a matcher that matches a string in place of a regular expression.

Source from the content-addressed store, hash-verified

464
465// StringMatcher is a matcher that matches a string in place of a regular expression.
466type StringMatcher interface {
467 Matches(s string) bool
468}
469
470// stringMatcherFromRegexp attempts to replace a common regexp with a string matcher.
471// It returns nil if the regexp is not supported.

Callers 8

PostingsForMatchersFunction · 0.65
labelValuesWithMatchersFunction · 0.65
LabelValuesMethod · 0.65
LabelNamesMethod · 0.65
matchesSomeMatcherSetFunction · 0.65
TestDB_e2eFunction · 0.65
TestDelete_e2eFunction · 0.65

Implementers 13

Matchermodel/labels/matcher.go
containsStringMatchermodel/labels/regexp.go
literalSuffixStringMatchermodel/labels/regexp.go
emptyStringMatchermodel/labels/regexp.go
equalStringMatchermodel/labels/regexp.go
equalMultiStringSliceMatchermodel/labels/regexp.go
equalMultiStringMapMatchermodel/labels/regexp.go
anyStringWithoutNewlineMatchermodel/labels/regexp.go
anyNonEmptyStringMatchermodel/labels/regexp.go
zeroOrOneCharacterStringMatchermodel/labels/regexp.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…