Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSuperCommand ¶
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) 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 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) SetFlags ¶
func (c *RemoveCommand) SetFlags(f *gnuflag.FlagSet)
Click to show internal directories.
Click to hide internal directories.