MCPcopy
hub / github.com/akuity/kargo / Matches

Method Matches

pkg/pattern/matcher.go:22–22  ·  view source on GitHub ↗

Matches checks if the given string matches the pattern.

(string)

Source from the content-addressed store, hash-verified

20type Matcher interface {
21 // Matches checks if the given string matches the pattern.
22 Matches(string) bool
23 // String returns the string representation of the pattern.
24 String() string
25}

Callers 6

TestGetShardRequirementFunction · 0.65
MatchesPathsMethod · 0.65
autoPromotionAllowedMethod · 0.65
MatchesMethod · 0.65
TestMatchersFunction · 0.65
TestGlobMatcherFunction · 0.65

Implementers 4

GlobMatcherpkg/pattern/matcher.go
RegexpMatcherpkg/pattern/matcher.go
BaseDirMatcherpkg/pattern/matcher.go
ExactMatcherpkg/pattern/matcher.go

Calls

no outgoing calls

Tested by 3

TestGetShardRequirementFunction · 0.52
TestMatchersFunction · 0.52
TestGlobMatcherFunction · 0.52