allKeysFrom returns all key pairs from the Context
(ctx context.Context)
| 75 | |
| 76 | // allKeysFrom returns all key pairs from the Context |
| 77 | func 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 |
| 86 | func keyWithNameFrom(ctx context.Context, name string) (*cosign.KeysBytes, error) { |
no outgoing calls
no test coverage detected