MCPcopy Create free account
hub / github.com/conforma/cli / allKeysFrom

Function allKeysFrom

acceptance/crypto/keys.go:77–83  ·  view source on GitHub ↗

allKeysFrom returns all key pairs from the Context

(ctx context.Context)

Source from the content-addressed store, hash-verified

75
76// allKeysFrom returns all key pairs from the Context
77func allKeysFrom(ctx context.Context) map[string]*cosign.KeysBytes {
78 if !testenv.HasState[keyState](ctx) {
79 return nil
80 }
81
82 return testenv.FetchState[keyState](ctx).Keys
83}
84
85// keyWithNameFrom returns a specific key by name from the Context
86func keyWithNameFrom(ctx context.Context, name string) (*cosign.KeysBytes, error) {

Callers 3

keyWithNameFromFunction · 0.85
PublicKeysFromFunction · 0.85
PrivateKeysFromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected