Documentation ¶
Overview ¶
The machine package implements the API interfaces used by the machine agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoIsMaster = mongo.IsMaster
MongoIsMaster is called by the IsMaster API call instead of mongo.IsMaster. It exists so it can be overridden by tests.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { *common.PasswordChanger // contains filtered or unexported fields }
API implements the API provided to an agent.
func NewAPI ¶
NewAPI returns an object implementing an agent API with the given authorizer representing the currently logged in client.
func (*API) GetEntities ¶
func (api *API) GetEntities(args params.Entities) params.AgentGetEntitiesResults
func (*API) StateServingInfo ¶
func (api *API) StateServingInfo() (result params.StateServingInfo, err error)
Click to show internal directories.
Click to hide internal directories.