Documentation ¶
Index ¶
- type API
- type HTTPClient
- 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
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type HTTPClient ¶
type HTTPClient struct { //NOTE(bcwaldon): This is only necessary until the API interface // is fully implemented by HTTPClient API // contains filtered or unexported fields }
func (*HTTPClient) CreateUnit ¶ added in v0.7.0
func (c *HTTPClient) CreateUnit(u *schema.Unit) error
func (*HTTPClient) DestroyUnit ¶ added in v0.7.0
func (c *HTTPClient) DestroyUnit(name string) error
func (*HTTPClient) Machines ¶
func (c *HTTPClient) Machines() ([]machine.MachineState, error)
func (*HTTPClient) SetUnitTargetState ¶ added in v0.7.0
func (c *HTTPClient) SetUnitTargetState(name, target string) error
func (*HTTPClient) Unit ¶ added in v0.7.0
func (c *HTTPClient) Unit(name string) (*schema.Unit, error)
func (*HTTPClient) UnitStates ¶ added in v0.7.0
func (c *HTTPClient) UnitStates() ([]*schema.UnitState, error)
type RegistryClient ¶ added in v0.7.0
func (*RegistryClient) CreateUnit ¶ added in v0.7.0
func (rc *RegistryClient) CreateUnit(u *schema.Unit) error
func (*RegistryClient) SetUnitTargetState ¶ added in v0.7.0
func (rc *RegistryClient) SetUnitTargetState(name, target string) error
func (*RegistryClient) Unit ¶ added in v0.7.0
func (rc *RegistryClient) Unit(name string) (*schema.Unit, error)
func (*RegistryClient) UnitStates ¶ added in v0.7.0
func (rc *RegistryClient) UnitStates() ([]*schema.UnitState, error)
Click to show internal directories.
Click to hide internal directories.