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

Method Match

x/secrets/pattern.go:97–102  ·  view source on GitHub ↗
(id ID)

Source from the content-addressed store, hash-verified

95type pattern string
96
97func (p pattern) Match(id ID) bool {
98 pathParts := split(id.String())
99 patternParts := split(string(p))
100
101 return match(patternParts, pathParts)
102}
103
104func (p pattern) Includes(other Pattern) bool {
105 otherParts := split(other.String())

Callers

nothing calls this directly

Calls 3

splitFunction · 0.85
matchFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected