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

package agent

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


Package Files



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 {
    // 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 12 packages (graph) and is imported by 4 packages. Updated 2020-07-29. Refresh now. Tools for package owners.