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

Function StoreFrom

plugins/pass/commands/store_ctx.go:32–38  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

30}
31
32func StoreFrom(ctx context.Context) (store.Store, error) {
33 s, ok := ctx.Value(storeCtxKey{}).(store.Store)
34 if !ok {
35 return nil, ErrNoStoreInContext
36 }
37 return s, nil
38}

Callers 6

SetCommandFunction · 0.85
RmCommandFunction · 0.85
GetCommandFunction · 0.85
ListCommandFunction · 0.85

Calls

no outgoing calls

Tested by 2