diff options
Diffstat (limited to 'vendor/github.com/hashicorp/vault/api/sys_stepdown.go')
-rw-r--r-- | vendor/github.com/hashicorp/vault/api/sys_stepdown.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/vault/api/sys_stepdown.go b/vendor/github.com/hashicorp/vault/api/sys_stepdown.go new file mode 100644 index 0000000..421e5f1 --- /dev/null +++ b/vendor/github.com/hashicorp/vault/api/sys_stepdown.go @@ -0,0 +1,10 @@ +package api + +func (c *Sys) StepDown() error { + r := c.c.NewRequest("PUT", "/v1/sys/step-down") + resp, err := c.c.RawRequest(r) + if err == nil { + defer resp.Body.Close() + } + return err +} |