Skip to content

Commit

Permalink
Add missing net/http import
Browse files Browse the repository at this point in the history
  • Loading branch information
averche committed Mar 22, 2022
1 parent 7912ba5 commit a850e0f
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 4 deletions.
1 change: 1 addition & 0 deletions api/auth_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package api

import (
"context"
"net/http"
)

// TokenAuth is used to perform token backend operations on Vault
Expand Down
1 change: 1 addition & 0 deletions api/sys_audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"net/http"

"github.com/mitchellh/mapstructure"
)
Expand Down
1 change: 1 addition & 0 deletions api/sys_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"net/http"

"github.com/mitchellh/mapstructure"
)
Expand Down
1 change: 1 addition & 0 deletions api/sys_config_cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package api
import (
"context"
"errors"
"net/http"

"github.com/mitchellh/mapstructure"
)
Expand Down
5 changes: 4 additions & 1 deletion api/sys_generate_root.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package api

import "context"
import (
"context"
"net/http"
)

func (c *Sys) GenerateRootStatus() (*GenerateRootStatusResponse, error) {
return c.GenerateRootStatusWithContext(context.Background())
Expand Down
1 change: 1 addition & 0 deletions api/sys_hastatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package api

import (
"context"
"net/http"
"time"
)

Expand Down
5 changes: 4 additions & 1 deletion api/sys_init.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package api

import "context"
import (
"context"
"net/http"
)

func (c *Sys) InitStatus() (bool, error) {
return c.InitStatusWithContext(context.Background())
Expand Down
1 change: 1 addition & 0 deletions api/sys_leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package api

import (
"context"
"net/http"
"time"
)

Expand Down
1 change: 1 addition & 0 deletions api/sys_leases.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package api
import (
"context"
"errors"
"net/http"
)

func (c *Sys) Renew(id string, increment int) (*Secret, error) {
Expand Down
1 change: 1 addition & 0 deletions api/sys_mounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"net/http"
"time"

"github.com/mitchellh/mapstructure"
Expand Down
1 change: 1 addition & 0 deletions api/sys_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"net/http"

"github.com/mitchellh/mapstructure"
)
Expand Down
5 changes: 4 additions & 1 deletion api/sys_seal.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package api

import "context"
import (
"context"
"net/http"
)

func (c *Sys) SealStatus() (*SealStatusResponse, error) {
return c.SealStatusWithContext(context.Background())
Expand Down
5 changes: 4 additions & 1 deletion api/sys_stepdown.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package api

import "context"
import (
"context"
"net/http"
)

func (c *Sys) StepDown() error {
return c.StepDownWithContext(context.Background())
Expand Down

0 comments on commit a850e0f

Please sign in to comment.