Versions in this module Expand all Collapse all v0 v0.0.3 Apr 21, 2015 v0.0.2 Apr 15, 2015 Changes in this version + type API interface + CreateUnit func(*schema.Unit) error + DestroyUnit func(string) error + Machines func() ([]machine.MachineState, error) + SetUnitTargetState func(name, target string) error + Unit func(string) (*schema.Unit, error) + UnitStates func() ([]*schema.UnitState, error) + Units func() ([]*schema.Unit, error) + func NewHTTPClient(c *http.Client, endpoint string) (API, error) + type HTTPClient struct + func (c *HTTPClient) CreateUnit(u *schema.Unit) error + func (c *HTTPClient) DestroyUnit(name string) error + func (c *HTTPClient) Machines() ([]machine.MachineState, error) + func (c *HTTPClient) SetUnitTargetState(name, target string) error + func (c *HTTPClient) Unit(name string) (*schema.Unit, error) + func (c *HTTPClient) UnitStates() ([]*schema.UnitState, error) + func (c *HTTPClient) Units() ([]*schema.Unit, error) + type RegistryClient struct + func (rc *RegistryClient) CreateUnit(u *schema.Unit) error + func (rc *RegistryClient) SetUnitTargetState(name, target string) error + func (rc *RegistryClient) Unit(name string) (*schema.Unit, error) + func (rc *RegistryClient) UnitStates() ([]*schema.UnitState, error) + func (rc *RegistryClient) Units() ([]*schema.Unit, error)