MCPcopy Create free account
hub / github.com/docker/secrets-engine / Match

Method Match

x/secrets/identifiers.go:143–148  ·  view source on GitHub ↗
(pattern Pattern)

Source from the content-addressed store, hash-verified

141type id string
142
143func (i id) Match(pattern Pattern) bool {
144 pathParts := split(string(i))
145 patternParts := split(pattern.String())
146
147 return match(patternParts, pathParts)
148}
149
150func (i id) String() string {
151 return string(i)

Callers

nothing calls this directly

Calls 3

splitFunction · 0.85
matchFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected