agent

package
v0.0.0-...-2608902 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 7 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL