aboutsummaryrefslogtreecommitdiff
path: root/secrets
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2022-12-23 17:13:49 -0800
committerMike Crute <mike@crute.us>2022-12-23 17:13:49 -0800
commit4edb5a7640b50993bf967916e61dcfd8d4306d3b (patch)
tree59b40bcc7d062edef5a85ab176ee6cc25d7bc6ba /secrets
parent63d9a303ce07e2d0ff2f59a811b8ee9745ac638a (diff)
downloadgolib-4edb5a7640b50993bf967916e61dcfd8d4306d3b.tar.bz2
golib-4edb5a7640b50993bf967916e61dcfd8d4306d3b.tar.xz
golib-4edb5a7640b50993bf967916e61dcfd8d4306d3b.zip
secrets: fix mapstructure bug
Diffstat (limited to 'secrets')
-rw-r--r--secrets/client.go8
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
27type Credential struct { 27type 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
32type ApiKey struct { 32type ApiKey struct {
33 Key string `json:"key"` 33 Key string `json:"key" mapstructure:"key"`
34} 34}
35 35
36type RSAKey struct { 36type RSAKey struct {
37 Key string `json:"key"` 37 Key string `json:"key" mapstructure:"key"`
38} 38}
39 39
40func (k *RSAKey) RSAPrivateKey() (*rsa.PrivateKey, error) { 40func (k *RSAKey) RSAPrivateKey() (*rsa.PrivateKey, error) {