Documentation ¶
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 AgentAPIV2 ¶
type AgentAPIV2 struct { *common.PasswordChanger *common.RebootFlagClearer *common.ModelWatcher // contains filtered or unexported fields }
AgentAPIV2 implements the version 2 of the API provided to an agent.
func NewAgentAPIV2 ¶
func NewAgentAPIV2(st *state.State, resources *common.Resources, auth common.Authorizer) (*AgentAPIV2, error)
NewAgentAPIV2 returns an object implementing version 2 of the Agent API with the given authorizer representing the currently logged in client.
func (*AgentAPIV2) GetEntities ¶
func (api *AgentAPIV2) GetEntities(args params.Entities) params.AgentGetEntitiesResults
func (*AgentAPIV2) IsMaster ¶
func (api *AgentAPIV2) IsMaster() (params.IsMasterResult, error)
func (*AgentAPIV2) StateServingInfo ¶
func (api *AgentAPIV2) StateServingInfo() (result state.StateServingInfo, err error)
Click to show internal directories.
Click to hide internal directories.