Documentation ¶
Index ¶
- type Machine
- type State
- type Unit
- func (u *Unit) Life() params.Life
- func (u *Unit) Name() string
- func (u *Unit) Refresh() error
- func (u *Unit) Remove() error
- func (u *Unit) SetPassword(password string) error
- func (u *Unit) SetStatus(unitStatus status.Status, info string, data map[string]interface{}) error
- func (u *Unit) Tag() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
Machine represents a juju machine as seen by the deployer worker.
func (*Machine) WatchUnits ¶
func (m *Machine) WatchUnits() (watcher.StringsWatcher, error)
WatchUnits starts a StringsWatcher to watch all units deployed to the machine, in order to track which ones should be deployed or recalled.
type State ¶
type State struct { *common.APIAddresser // contains filtered or unexported fields }
State provides access to the deployer worker's idea of the state.
func NewState ¶
NewState creates a new State instance that makes API calls through the given caller.
func (*State) ConnectionInfo ¶
func (st *State) ConnectionInfo() (result params.DeployerConnectionValues, err error)
ConnectionInfo returns all the address information that the deployer task needs in one call.
func (*State) StateAddresses ¶
StateAddresses returns the list of addresses used to connect to the state.
type Unit ¶
type Unit struct {
// contains filtered or unexported fields
}
Unit represents a juju unit as seen by the deployer worker.
func (*Unit) Remove ¶
Remove removes the unit from state, calling EnsureDead first, then Remove. It will fail if the unit is not present.
func (*Unit) SetPassword ¶
SetPassword sets the unit's password.