File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,16 @@ import (
14
14
// the secret.
15
15
type Constructor func (Params ) (Source , error )
16
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
+
17
27
// Params contains all possible constructor parameters an output may need.
18
28
type Params struct {
19
29
ConfigArgument string // the string on the cli
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments