machine

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSuperCommand

func NewSuperCommand() cmd.Command

NewSuperCommand creates the user supercommand and registers the subcommands that it supports.

Types

type AddCommand

type AddCommand struct {
	envcmd.EnvCommandBase

	// If specified, use this series, else use the environment default-series
	Series string
	// If specified, these constraints are merged with those already in the environment.
	Constraints constraints.Value
	// Placement is passed verbatim to the API, to be parsed and evaluated server-side.
	Placement *instance.Placement
	// NumMachines is the number of machines to add.
	NumMachines int
	// Disks describes disks that are to be attached to the machine.
	Disks []storage.Constraints
	// contains filtered or unexported fields
}

AddCommand starts a new machine and registers it in the environment.

func (*AddCommand) Info

func (c *AddCommand) Info() *cmd.Info

func (*AddCommand) Init

func (c *AddCommand) Init(args []string) error

func (*AddCommand) NewMachineManagerClient

func (c *AddCommand) NewMachineManagerClient() (*machinemanager.Client, error)

func (*AddCommand) Run

func (c *AddCommand) Run(ctx *cmd.Context) error

func (*AddCommand) SetFlags

func (c *AddCommand) SetFlags(f *gnuflag.FlagSet)

type AddMachineAPI

type AddMachineAPI interface {
	AddMachines([]params.AddMachineParams) ([]params.AddMachinesResult, error)
	AddMachines1dot18([]params.AddMachineParams) ([]params.AddMachinesResult, error)
	Close() error
	ForceDestroyMachines(machines ...string) error
	EnvironmentGet() (map[string]interface{}, error)
	EnvironmentUUID() string
	ProvisioningScript(params.ProvisioningScriptParams) (script string, err error)
}

type MachineManagerAPI

type MachineManagerAPI interface {
	AddMachines([]params.AddMachineParams) ([]params.AddMachinesResult, error)
	BestAPIVersion() int
	Close() error
}

type RemoveCommand

type RemoveCommand struct {
	envcmd.EnvCommandBase

	MachineIds []string
	Force      bool
	// contains filtered or unexported fields
}

RemoveCommand causes an existing machine to be destroyed.

func (*RemoveCommand) Info

func (c *RemoveCommand) Info() *cmd.Info

func (*RemoveCommand) Init

func (c *RemoveCommand) Init(args []string) error

func (*RemoveCommand) Run

func (c *RemoveCommand) Run(_ *cmd.Context) error

func (*RemoveCommand) SetFlags

func (c *RemoveCommand) SetFlags(f *gnuflag.FlagSet)

type RemoveMachineAPI

type RemoveMachineAPI interface {
	DestroyMachines(machines ...string) error
	ForceDestroyMachines(machines ...string) error
	Close() error
}

Jump to

Keyboard shortcuts

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