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

Method Filter

store/store.go:99–99  ·  view source on GitHub ↗

Filter returns a map of secrets based on a [Pattern]. Secrets returned will have both [Secret.SetMetadata] and [Secret.Unmarshal] called; in that order. Any error produced by any of them would result in an early return with a nil secrets map.

(ctx context.Context, pattern Pattern)

Source from the content-addressed store, hash-verified

97 // called; in that order. Any error produced by any of them would result in
98 // an early return with a nil secrets map.
99 Filter(ctx context.Context, pattern Pattern) (map[ID]Secret, error)
100}
101
102type Factory[T Secret] func(context.Context, ID) T

Callers 5

TestMacosKeychainFunction · 0.65
TestKeychainFunction · 0.65
TestPOSIXAgeFunction · 0.65
GetSecretsMethod · 0.65

Implementers 2

MockStorestore/mocks/mock_store.go
MockStoreplugins/pass/teststore/teststore.go

Calls

no outgoing calls

Tested by 4

TestMacosKeychainFunction · 0.52
TestKeychainFunction · 0.52
TestPOSIXAgeFunction · 0.52