Documentation ¶
Index ¶
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 {
// 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.
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.