agent

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 12 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
	*common.ControllerConfigAPI
	cloudspec.CloudSpecAPI
	// 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 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.

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 params.StateServingInfo, err error)

func (*AgentAPIV2) WatchCredentials

func (api *AgentAPIV2) WatchCredentials(args params.Entities) (params.NotifyWatchResults, error)

WatchCredentials watches for changes to the specified credentials.

Jump to

Keyboard shortcuts

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