machine

package
v0.0.0-...-acd7349 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2013 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

This section is empty.

Functions

This section is empty.

Types

type AgentAPI

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

func NewAgentAPI

func NewAgentAPI(st *state.State, auth common.Authorizer) (*AgentAPI, error)

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

func (*AgentAPI) GetMachines

type MachinerAPI

type MachinerAPI struct {
	*common.LifeGetter
	// contains filtered or unexported fields
}

MachinerAPI implements the API used by the machiner worker.

func NewMachinerAPI

func NewMachinerAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer) (*MachinerAPI, error)

NewMachinerAPI creates a new instance of the Machiner API.

func (*MachinerAPI) EnsureDead

func (m *MachinerAPI) EnsureDead(args params.Entities) (params.ErrorResults, error)

EnsureDead changes the lifecycle of each given machine to Dead if it's Alive or Dying. It does nothing otherwise.

func (*MachinerAPI) SetStatus

SetStatus sets the status of each given machine.

func (*MachinerAPI) Watch

Watch starts an NotifyWatcher for each given machine.

Jump to

Keyboard shortcuts

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