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

Function WithStore

plugins/pass/commands/store_ctx.go:28–30  ·  view source on GitHub ↗
(ctx context.Context, s store.Store)

Source from the content-addressed store, hash-verified

26type storeCtxKey struct{}
27
28func WithStore(ctx context.Context, s store.Store) context.Context {
29 return context.WithValue(ctx, storeCtxKey{}, s)
30}
31
32func StoreFrom(ctx context.Context) (store.Store, error) {
33 s, ok := ctx.Value(storeCtxKey{}).(store.Store)

Callers 2

runCobraFunction · 0.70

Calls

no outgoing calls

Tested by 2

runCobraFunction · 0.56