diff options
author | Mike Crute <mike@crute.us> | 2022-12-23 17:13:49 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2022-12-23 17:13:49 -0800 |
commit | 4edb5a7640b50993bf967916e61dcfd8d4306d3b (patch) | |
tree | 59b40bcc7d062edef5a85ab176ee6cc25d7bc6ba /secrets | |
parent | 63d9a303ce07e2d0ff2f59a811b8ee9745ac638a (diff) | |
download | golib-4edb5a7640b50993bf967916e61dcfd8d4306d3b.tar.bz2 golib-4edb5a7640b50993bf967916e61dcfd8d4306d3b.tar.xz golib-4edb5a7640b50993bf967916e61dcfd8d4306d3b.zip |
secrets: fix mapstructure bug
Diffstat (limited to 'secrets')
-rw-r--r-- | secrets/client.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/secrets/client.go b/secrets/client.go index 7a1f51b..92c46ef 100644 --- a/secrets/client.go +++ b/secrets/client.go | |||
@@ -25,16 +25,16 @@ type Renewal struct { | |||
25 | } | 25 | } |
26 | 26 | ||
27 | type Credential struct { | 27 | type Credential struct { |
28 | Username string `json:"username"` | 28 | Username string `json:"username" mapstructure:"username"` |
29 | Password string `json:"password"` | 29 | Password string `json:"password" mapstructure:"password"` |
30 | } | 30 | } |
31 | 31 | ||
32 | type ApiKey struct { | 32 | type ApiKey struct { |
33 | Key string `json:"key"` | 33 | Key string `json:"key" mapstructure:"key"` |
34 | } | 34 | } |
35 | 35 | ||
36 | type RSAKey struct { | 36 | type RSAKey struct { |
37 | Key string `json:"key"` | 37 | Key string `json:"key" mapstructure:"key"` |
38 | } | 38 | } |
39 | 39 | ||
40 | func (k *RSAKey) RSAPrivateKey() (*rsa.PrivateKey, error) { | 40 | func (k *RSAKey) RSAPrivateKey() (*rsa.PrivateKey, error) { |