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

Method Get

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

Get retrieves credentials from the store for a given ID.

(ctx context.Context, id ID)

Source from the content-addressed store, hash-verified

78 Delete(ctx context.Context, id ID) error
79 // Get retrieves credentials from the store for a given ID.
80 Get(ctx context.Context, id ID) (Secret, error)
81 // GetAllMetadata retrieves all the credentials from the store.
82 // Credentials retrieved will only call [Secret.SetMetadata] so that the
83 // underlying store does not get queried for each secret's sensitive data.

Callers 14

TestMacosKeychainFunction · 0.65
TestUpsertFunction · 0.65
TestKeychainGetNotFoundFunction · 0.65
TestKeychainFunction · 0.65
newCommandFunction · 0.65
TestPOSIXAgeFunction · 0.65
GetCommandFunction · 0.65
assertStoredValueFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 11

TestMacosKeychainFunction · 0.52
TestUpsertFunction · 0.52
TestKeychainGetNotFoundFunction · 0.52
TestKeychainFunction · 0.52
TestPOSIXAgeFunction · 0.52
assertStoredValueFunction · 0.52
assertStoredMetadataFunction · 0.52