machine

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

The machiner package implements the API interface used by the machiner worker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MachinerAPI

type MachinerAPI struct {
	*common.LifeGetter
	*common.StatusSetter
	*common.DeadEnsurer
	*common.AgentEntityWatcher
	*common.APIAddresser
	// 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) Jobs

func (api *MachinerAPI) Jobs(args params.Entities) (params.JobsResults, error)

Jobs returns the jobs assigned to the given entities.

func (*MachinerAPI) SetMachineAddresses

func (api *MachinerAPI) SetMachineAddresses(args params.SetMachinesAddresses) (params.ErrorResults, error)

func (*MachinerAPI) SetObservedNetworkConfig

func (api *MachinerAPI) SetObservedNetworkConfig(args params.SetMachineNetworkConfig) error

func (*MachinerAPI) SetProviderNetworkConfig

func (api *MachinerAPI) SetProviderNetworkConfig(args params.Entities) (params.ErrorResults, error)

Jump to

Keyboard shortcuts

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