diff --git a/api/auth_token.go b/api/auth_token.go index c63f329d35c3..323234680bb6 100644 --- a/api/auth_token.go +++ b/api/auth_token.go @@ -2,6 +2,7 @@ package api import ( "context" + "net/http" ) // TokenAuth is used to perform token backend operations on Vault diff --git a/api/sys_audit.go b/api/sys_audit.go index eb8f958bd394..d688cf6d03c5 100644 --- a/api/sys_audit.go +++ b/api/sys_audit.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "net/http" "github.com/mitchellh/mapstructure" ) diff --git a/api/sys_auth.go b/api/sys_auth.go index ab710ce874c2..3ab584a891fd 100644 --- a/api/sys_auth.go +++ b/api/sys_auth.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "net/http" "github.com/mitchellh/mapstructure" ) diff --git a/api/sys_config_cors.go b/api/sys_config_cors.go index baa2a7d00018..b43e2899cd7a 100644 --- a/api/sys_config_cors.go +++ b/api/sys_config_cors.go @@ -3,6 +3,7 @@ package api import ( "context" "errors" + "net/http" "github.com/mitchellh/mapstructure" ) diff --git a/api/sys_generate_root.go b/api/sys_generate_root.go index 5bc840c49839..d100654cdf34 100644 --- a/api/sys_generate_root.go +++ b/api/sys_generate_root.go @@ -1,6 +1,9 @@ package api -import "context" +import ( + "context" + "net/http" +) func (c *Sys) GenerateRootStatus() (*GenerateRootStatusResponse, error) { return c.GenerateRootStatusWithContext(context.Background()) diff --git a/api/sys_hastatus.go b/api/sys_hastatus.go index ebec29d3f291..35bf40336651 100644 --- a/api/sys_hastatus.go +++ b/api/sys_hastatus.go @@ -2,6 +2,7 @@ package api import ( "context" + "net/http" "time" ) diff --git a/api/sys_init.go b/api/sys_init.go index 06cf15936ac7..06412426a001 100644 --- a/api/sys_init.go +++ b/api/sys_init.go @@ -1,6 +1,9 @@ package api -import "context" +import ( + "context" + "net/http" +) func (c *Sys) InitStatus() (bool, error) { return c.InitStatusWithContext(context.Background()) diff --git a/api/sys_leader.go b/api/sys_leader.go index cb7b6fe35fa3..a74e206ebed4 100644 --- a/api/sys_leader.go +++ b/api/sys_leader.go @@ -2,6 +2,7 @@ package api import ( "context" + "net/http" "time" ) diff --git a/api/sys_leases.go b/api/sys_leases.go index 70bf8b50990f..d5a9703f4e5f 100644 --- a/api/sys_leases.go +++ b/api/sys_leases.go @@ -3,6 +3,7 @@ package api import ( "context" "errors" + "net/http" ) func (c *Sys) Renew(id string, increment int) (*Secret, error) { diff --git a/api/sys_mounts.go b/api/sys_mounts.go index 31611dbb02a9..1f3c9fa80035 100644 --- a/api/sys_mounts.go +++ b/api/sys_mounts.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "net/http" "time" "github.com/mitchellh/mapstructure" diff --git a/api/sys_policy.go b/api/sys_policy.go index 53d281d9a8c3..b83801040bf7 100644 --- a/api/sys_policy.go +++ b/api/sys_policy.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "net/http" "github.com/mitchellh/mapstructure" ) diff --git a/api/sys_seal.go b/api/sys_seal.go index 58f99468595c..fba9303e889c 100644 --- a/api/sys_seal.go +++ b/api/sys_seal.go @@ -1,6 +1,9 @@ package api -import "context" +import ( + "context" + "net/http" +) func (c *Sys) SealStatus() (*SealStatusResponse, error) { return c.SealStatusWithContext(context.Background()) diff --git a/api/sys_stepdown.go b/api/sys_stepdown.go index 78188cbfdfd4..833f31a6f760 100644 --- a/api/sys_stepdown.go +++ b/api/sys_stepdown.go @@ -1,6 +1,9 @@ package api -import "context" +import ( + "context" + "net/http" +) func (c *Sys) StepDown() error { return c.StepDownWithContext(context.Background())