agent

package
v0.0.0-...-f19ae85 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

The machine package implements the API interfaces used by the machine agent.

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 AgentAPIV0

type AgentAPIV0 struct {
	*common.PasswordChanger
	*common.RebootFlagClearer
	// contains filtered or unexported fields
}

AgentAPIV0 implements the version 0 of the API provided to an agent.

func NewAgentAPIV0

func NewAgentAPIV0(st *state.State, resources *common.Resources, auth common.Authorizer) (*AgentAPIV0, error)

NewAgentAPIV0 returns an object implementing version 0 of the Agent API with the given authorizer representing the currently logged in client.

func (*AgentAPIV0) GetEntities

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

func (*AgentAPIV0) IsMaster

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

func (*AgentAPIV0) StateServingInfo

func (api *AgentAPIV0) StateServingInfo() (result state.StateServingInfo, err error)

type AgentAPIV1

type AgentAPIV1 struct {
	*AgentAPIV0
}

AgentAPIV1 implements the version 1 of the API provided to an agent.

func NewAgentAPIV1

func NewAgentAPIV1(st *state.State, resources *common.Resources, auth common.Authorizer) (*AgentAPIV1, error)

NewAgentAPIV1 returns an object implementing version 1 of the Agent API with the given authorizer representing the currently logged in client. The functionality is like V0, except that it also knows about the additional JobManageNetworking.

Jump to

Keyboard shortcuts

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