agent

package
v0.0.0-...-004e4dd Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 13 Imported by: 1

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

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type AgentAPI

type AgentAPI struct {
	*common.PasswordChanger
	*common.RebootFlagClearer
	*common.ModelWatcher
	*common.ControllerConfigAPI
	cloudspec.CloudSpecer
	// contains filtered or unexported fields
}

AgentAPI implements the version 3 of the API provided to an agent.

func (*AgentAPI) GetEntities

func (api *AgentAPI) GetEntities(args params.Entities) params.AgentGetEntitiesResults

func (*AgentAPI) IsMaster

func (api *AgentAPI) IsMaster() (params.IsMasterResult, error)

func (*AgentAPI) StateServingInfo

func (api *AgentAPI) StateServingInfo() (result params.StateServingInfo, err error)

func (*AgentAPI) WatchCredentials

func (api *AgentAPI) 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