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

Method Match

x/secrets/identifiers.go:138–138  ·  view source on GitHub ↗

Match the [ID] against a [Pattern] It checks if a given identifier matches the pattern. - "*" matches a single component - "**" matches zero or more components - "/" is the separator

(pattern Pattern)

Source from the content-addressed store, hash-verified

136 // - "**" matches zero or more components
137 // - "/" is the separator
138 Match(pattern Pattern) bool
139}
140
141type id string

Callers 11

FilterMethod · 0.65
FilterMethod · 0.65
FilterMethod · 0.65
findServiceCredentialsFunction · 0.65
FilterMethod · 0.65
TestMatchNewFunction · 0.65
GetSecretsMethod · 0.65
GetSecretsMethod · 0.65
GetSecretsMethod · 0.65
FilterMethod · 0.65
GetSecretsMethod · 0.65

Implementers 1

maliciousPatternx/api/resolver/resolver_test.go

Calls

no outgoing calls

Tested by 2

TestMatchNewFunction · 0.52
GetSecretsMethod · 0.52