Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) ClearReboot ¶
ClearReboot clears the reboot flag of the machine.
func (*Entity) ContainerType ¶
func (m *Entity) ContainerType() instance.ContainerType
ContainerType returns the type of container hosting this entity. If the entity is not a machine, it returns an empty string.
func (*Entity) Jobs ¶
func (m *Entity) Jobs() []multiwatcher.MachineJob
Jobs returns the set of configured jobs if the API is running on behalf of a machine agent. When running for other agents, it will return the empty list.
func (*Entity) SetPassword ¶
SetPassword sets the password associated with the agent's entity.
type State ¶
type State struct {
// contains filtered or unexported fields
}
State provides access to an agent's view of the state.
func NewState ¶
NewState returns a version of the state that provides functionality required by agent code.
func (*State) IsMaster ¶
IsMaster reports whether the connected machine agent lives at the same network address as the primary mongo server for the replica set. This call will return an error if the connected agent is not a machine agent with environment-manager privileges.
func (*State) StateServingInfo ¶
func (st *State) StateServingInfo() (params.StateServingInfo, error)