Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
controller/client: Add ProviderList
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
  • Loading branch information
titanous committed Apr 24, 2014
1 parent c6421eb commit ac1b55d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,8 @@ func (c *Client) CreateKey(pubKey string) (*ct.Key, error) {
func (c *Client) DeleteKey(id string) error {
return c.delete("/keys/" + strings.Replace(id, ":", "", -1))
}

func (c *Client) ProviderList() ([]*ct.Provider, error) {
var providers []*ct.Provider
return providers, c.get("/providers", &providers)
}

0 comments on commit ac1b55d

Please sign in to comment.