PrivateKeysFrom returns a map of all private keys encoded in PEM format keyed by the name of the key
(ctx context.Context)
| 120 | // PrivateKeysFrom returns a map of all private keys encoded in PEM format |
| 121 | // keyed by the name of the key |
| 122 | func 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 |
| 134 | func AddStepsTo(sc *godog.ScenarioContext) { |
no test coverage detected