diff --git a/internalshared/README.md b/internalshared/README.md new file mode 100644 index 0000000000..dd2ee8a0b2 --- /dev/null +++ b/internalshared/README.md @@ -0,0 +1,14 @@ +HashiCorp-internal libs +================= + +Do not use these unless you know what you're doing. + +These libraries are used by other HashiCorp software to reduce code duplication +and increase consistency. They are not libraries needed by Vault plugins -- +those are in the sdk/ module. + +There are no compatibility guarantees. Things in here may change or move or +disappear at any time. + +If you are a Vault plugin author and think you need a library in here in your +plugin, please open an issue for discussion. diff --git a/sdk/helper/gatedwriter/writer.go b/internalshared/gatedwriter/writer.go similarity index 100% rename from sdk/helper/gatedwriter/writer.go rename to internalshared/gatedwriter/writer.go diff --git a/sdk/helper/gatedwriter/writer_test.go b/internalshared/gatedwriter/writer_test.go similarity index 100% rename from sdk/helper/gatedwriter/writer_test.go rename to internalshared/gatedwriter/writer_test.go diff --git a/sdk/helper/listenerutil/listener.go b/internalshared/listenerutil/listener.go similarity index 100% rename from sdk/helper/listenerutil/listener.go rename to internalshared/listenerutil/listener.go diff --git a/sdk/helper/listenerutil/listener_test.go b/internalshared/listenerutil/listener_test.go similarity index 100% rename from sdk/helper/listenerutil/listener_test.go rename to internalshared/listenerutil/listener_test.go diff --git a/sdk/helper/reload/reload.go b/internalshared/reloadutil/reload.go similarity index 100% rename from sdk/helper/reload/reload.go rename to internalshared/reloadutil/reload.go diff --git a/sdk/helper/reload/reload_test.go b/internalshared/reloadutil/reload_test.go similarity index 100% rename from sdk/helper/reload/reload_test.go rename to internalshared/reloadutil/reload_test.go diff --git a/sdk/go.mod b/sdk/go.mod index 40143385d8..2106fdc74a 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -22,8 +22,6 @@ require ( github.com/hashicorp/go-version v1.1.0 github.com/hashicorp/golang-lru v0.5.1 github.com/hashicorp/hcl v1.0.0 - github.com/jefferai/isbadcipher v0.0.0-20190226160619-51d2077c035f - github.com/mitchellh/cli v1.0.0 github.com/mitchellh/copystructure v1.0.0 github.com/mitchellh/go-testing-interface v1.0.0 github.com/mitchellh/mapstructure v1.1.2 diff --git a/sdk/go.sum b/sdk/go.sum index 9c43e0b03d..25730996b1 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -64,8 +64,6 @@ github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb h1:b5rjCoWHc7eqmAS4/qyk21ZsHyb6Mxv/jykxvNTkU4M= github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= -github.com/jefferai/isbadcipher v0.0.0-20190226160619-51d2077c035f h1:E87tDTVS5W65euzixn7clSzK66puSt1H4I5SC0EmHH4= -github.com/jefferai/isbadcipher v0.0.0-20190226160619-51d2077c035f/go.mod h1:3J2qVK16Lq8V+wfiL2lPeDZ7UWMxk5LemerHa1p6N00= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=