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