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

Method Matches

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

Matches checks if any of the matchers match the given string.

(str string)

Source from the content-addressed store, hash-verified

62
63// Matches checks if any of the matchers match the given string.
64func (m Matchers) Matches(str string) bool {
65 for _, matcher := range m {
66 if matcher.Matches(str) {
67 return true
68 }
69 }
70 return false
71}
72
73// String returns a string representation of all matchers.
74func (m Matchers) String() string {

Callers

nothing calls this directly

Calls 1

MatchesMethod · 0.65

Tested by

no test coverage detected