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

Method Save

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

Save persists credentials from the store.

(ctx context.Context, id ID, secret Secret)

Source from the content-addressed store, hash-verified

86 GetAllMetadata(ctx context.Context) (map[ID]Secret, error)
87 // Save persists credentials from the store.
88 Save(ctx context.Context, id ID, secret Secret) error
89 // Upsert atomically replaces an existing credential or inserts a new one.
90 // On stores that do not support overwriting (e.g. macOS Keychain), it
91 // deletes the existing credential and then saves the new one under a mutex

Implementers 2

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

Calls

no outgoing calls