mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	api: use /v1 prefix
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| package api | ||||
|  | ||||
| func (c *Sys) SealStatus() (*SealStatusResponse, error) { | ||||
| 	r := c.c.NewRequest("GET", "/sys/seal-status") | ||||
| 	r := c.c.NewRequest("GET", "/v1/sys/seal-status") | ||||
| 	resp, err := c.c.RawRequest(r) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| @@ -14,7 +14,7 @@ func (c *Sys) SealStatus() (*SealStatusResponse, error) { | ||||
| } | ||||
|  | ||||
| func (c *Sys) Seal() error { | ||||
| 	r := c.c.NewRequest("PUT", "/sys/seal") | ||||
| 	r := c.c.NewRequest("PUT", "/v1/sys/seal") | ||||
| 	resp, err := c.c.RawRequest(r) | ||||
| 	defer resp.Body.Close() | ||||
| 	return err | ||||
| @@ -23,7 +23,7 @@ func (c *Sys) Seal() error { | ||||
| func (c *Sys) Unseal(shard string) (*SealStatusResponse, error) { | ||||
| 	body := map[string]interface{}{"key": shard} | ||||
|  | ||||
| 	r := c.c.NewRequest("PUT", "/sys/unseal") | ||||
| 	r := c.c.NewRequest("PUT", "/v1/sys/unseal") | ||||
| 	if err := r.SetJSONBody(body); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Mitchell Hashimoto
					Mitchell Hashimoto