Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
func
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
SetCommand
Function · 0.85
Test_StoreContext_roundtrip
Function · 0.85
Test_StoreContext_missingReturnsError
Function · 0.85
RmCommand
Function · 0.85
GetCommand
Function · 0.85
ListCommand
Function · 0.85
Calls
no outgoing calls
Tested by
2
Test_StoreContext_roundtrip
Function · 0.68
Test_StoreContext_missingReturnsError
Function · 0.68