Skip to content

Commit

Permalink
Support KVv2
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmitchell committed May 21, 2019
1 parent 7b0dfdf commit f9b9fc1
Show file tree
Hide file tree
Showing 24 changed files with 5,335 additions and 2,107 deletions.
3,112 changes: 1,556 additions & 1,556 deletions server/static.go

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions storage/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

type VaultAccessor struct {
client *vaultkv.Client
client *vaultkv.KV
basePath string
}

Expand Down Expand Up @@ -44,7 +44,7 @@ func newVaultAccessor(conf VaultConfig) (*VaultAccessor, error) {
}

return &VaultAccessor{
client: &vaultkv.Client{
client: (&vaultkv.Client{
VaultURL: u,
AuthToken: conf.Auth.Token,
Client: &http.Client{
Expand All @@ -55,7 +55,7 @@ func newVaultAccessor(conf VaultConfig) (*VaultAccessor, error) {
},
},
//Trace: os.Stdout,
},
}).NewKV(),
basePath: conf.BasePath,
}, nil

Expand All @@ -65,7 +65,7 @@ func newVaultAccessor(conf VaultConfig) (*VaultAccessor, error) {
// return it as a map.
func (v *VaultAccessor) Get(path string) (map[string]string, error) {
ret := make(map[string]string)
err := v.client.Get(path, &ret)
_, err := v.client.Get(path, &ret, nil)
return ret, err
}

Expand Down
7 changes: 1 addition & 6 deletions vendor/github.com/cloudfoundry-community/vaultkv/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions vendor/github.com/cloudfoundry-community/vaultkv/auth.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions vendor/github.com/cloudfoundry-community/vaultkv/auth_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

165 changes: 165 additions & 0 deletions vendor/github.com/cloudfoundry-community/vaultkv/badstate_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f9b9fc1

Please sign in to comment.