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

Function PrivateKeysFrom

acceptance/crypto/keys.go:122–131  ·  view source on GitHub ↗

PrivateKeysFrom returns a map of all private keys encoded in PEM format keyed by the name of the key

(ctx context.Context)

Source from the content-addressed store, hash-verified

120// PrivateKeysFrom returns a map of all private keys encoded in PEM format
121// keyed by the name of the key
122func PrivateKeysFrom(ctx context.Context) map[string]string {
123 keys := allKeysFrom(ctx)
124
125 ret := make(map[string]string, len(keys))
126 for name, key := range keys {
127 ret[name] = string(key.PrivateBytes)
128 }
129
130 return ret
131}
132
133// AddStepsTo adds Gherkin steps to the godog ScenarioContext
134func AddStepsTo(sc *godog.ScenarioContext) {

Callers 1

setupKeysFunction · 0.92

Calls 1

allKeysFromFunction · 0.85

Tested by

no test coverage detected