MCPcopy Index your code
hub / github.com/zalando/skipper / GetSecret

Method GetSecret

secrets/encrypter_test.go:24–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func (s *testingSecretSource) GetSecret() ([][]byte, error) {
25 if s.failingGetSecret {
26 return nil, fmt.Errorf("failed to get secret")
27 }
28
29 s.getCount++
30
31 if s.changingGetSecret {
32 return [][]byte{[]byte(s.secretKey + strconv.Itoa(s.getCount))}, nil
33 }
34 return [][]byte{[]byte(s.secretKey)}, nil
35}
36
37func (s *testingSecretSource) SetSecret(key string) {
38 s.secretKey = key

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected