Documentation ¶
Index ¶
- type Machine
- type State
- func (st *State) APIAddresses() ([]string, error)
- func (st *State) CACert() ([]byte, error)
- func (st *State) ConnectionInfo() (result params.DeployerConnectionValues, err error)
- func (st *State) Machine(tag string) (*Machine, error)
- func (st *State) StateAddresses() ([]string, error)
- func (st *State) Unit(tag string) (*Unit, error)
- type Unit
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) APIAddresses ¶
APIAddresses returns the list of addresses used to connect to the API.
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.