juju: github.com/juju/juju/apiserver/facades/agent/agent Index | Files

package agent

import "github.com/juju/juju/apiserver/facades/agent/agent"

Index

Package Files

agent.go

Variables

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.

type AgentAPIV2 Uses

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 Uses

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 Uses

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

func (*AgentAPIV2) IsMaster Uses

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

func (*AgentAPIV2) StateServingInfo Uses

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

func (*AgentAPIV2) WatchCredentials Uses

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

WatchCredentials watches for changes to the specified credentials.

Package agent imports 10 packages (graph) and is imported by 3 packages. Updated 2019-09-01. Refresh now. Tools for package owners.