Switch away from the static node info

This commit is contained in:
Brendan Burns
2014-10-10 13:49:09 -07:00
parent b3292e947f
commit e6fa568ad4
3 changed files with 17 additions and 7 deletions

View File

@@ -291,3 +291,9 @@ func (c *Client) ListMinions() (result *api.MinionList, err error) {
err = c.Get().Path("minions").Do().Into(result)
return
}
func (c *Client) GetMinion(id string) (result *api.Minion, err error) {
result = &api.Minion{}
err = c.Get().Path("minions").Path(id).Do().Into(result)
return
}