agent

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 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 {
	*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.

Jump to

Keyboard shortcuts

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