agent

package
v0.0.0-...-6337964 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2014 License: AGPL-3.0 Imports: 4 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 API

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

API implements the API provided to an agent.

func NewAPI

func NewAPI(st *state.State, auth common.Authorizer) (*API, error)

NewAPI returns an object implementing an agent API with the given authorizer representing the currently logged in client.

func (*API) GetEntities

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

func (*API) IsMaster

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

func (*API) StateServingInfo

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

Jump to

Keyboard shortcuts

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