api: RevokePrefix

This commit is contained in:
Mitchell Hashimoto 2015-03-31 19:23:52 -07:00
parent ed2cc3a769
commit 214218a993
1 changed files with 9 additions and 0 deletions

View File

@ -19,3 +19,12 @@ func (c *Sys) Revoke(id string) error {
}
return err
}
func (c *Sys) RevokePrefix(id string) error {
r := c.c.NewRequest("PUT", "/v1/sys/revoke-prefix/"+id)
resp, err := c.c.RawRequest(r)
if err == nil {
defer resp.Body.Close()
}
return err
}