From faf12b3319cfa0cc3de2436d6ef4971fc8843d9e Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Wed, 15 May 2019 09:22:48 -0400 Subject: [PATCH] Update to use newer sdk --- go.mod | 2 +- .../hashicorp/vault/sdk/logical/audit.go | 19 +++++++++++++++++++ vendor/modules.txt | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 vendor/github.com/hashicorp/vault/sdk/logical/audit.go diff --git a/go.mod b/go.mod index 7df0534f48..5e2c752b24 100644 --- a/go.mod +++ b/go.mod @@ -81,7 +81,7 @@ require ( github.com/hashicorp/vault-plugin-secrets-gcpkms v0.5.1 github.com/hashicorp/vault-plugin-secrets-kv v0.5.2-0.20190416155133-fd495225dea0 github.com/hashicorp/vault/api v1.0.1 - github.com/hashicorp/vault/sdk v0.1.8 + github.com/hashicorp/vault/sdk v0.1.11 github.com/influxdata/influxdb v0.0.0-20190411212539-d24b7ba8c4c4 github.com/jackc/fake v0.0.0-20150926172116-812a484cc733 // indirect github.com/jackc/pgx v3.3.0+incompatible // indirect diff --git a/vendor/github.com/hashicorp/vault/sdk/logical/audit.go b/vendor/github.com/hashicorp/vault/sdk/logical/audit.go new file mode 100644 index 0000000000..f3bf622b3d --- /dev/null +++ b/vendor/github.com/hashicorp/vault/sdk/logical/audit.go @@ -0,0 +1,19 @@ +package logical + +type LogInput struct { + Type string + Auth *Auth + Request interface{} + Response interface{} + OuterErr error + NonHMACReqDataKeys []string + NonHMACRespDataKeys []string +} + +type MarshalOptions struct { + ValueHasher func(string) string +} + +type OptMarshaler interface { + MarshalJSONWithOptions(*MarshalOptions) ([]byte, error) +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 2686241680..0fa2cb2399 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -348,7 +348,7 @@ github.com/hashicorp/vault-plugin-secrets-gcpkms github.com/hashicorp/vault-plugin-secrets-kv # github.com/hashicorp/vault/api v1.0.1 => ./api github.com/hashicorp/vault/api -# github.com/hashicorp/vault/sdk v0.1.8 => ./sdk +# github.com/hashicorp/vault/sdk v0.1.11 => ./sdk github.com/hashicorp/vault/sdk/helper/salt github.com/hashicorp/vault/sdk/helper/strutil github.com/hashicorp/vault/sdk/helper/wrapping