Source is the interface a secret source needs to implement
| 16 | |
| 17 | // Source is the interface a secret source needs to implement |
| 18 | type Source interface { |
| 19 | // Human readable description to be printed on the cli |
| 20 | Description() string |
| 21 | // Get retrives the value for a given key and returns it. |
| 22 | // Logging the value before it is returned is going to lead to it being leaked. |
| 23 | // The error might lead to an exception visible to users. |
| 24 | Get(key string) (value string, err error) |
| 25 | } |
| 26 | |
| 27 | // Params contains all possible constructor parameters an output may need. |
| 28 | type Params struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…