commands

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2017 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliaasCommand

type CliaasCommand struct {
	Config cliaas.Config

	ConfigFile ConfigFilePath `short:"c" long:"config" required:"true" description:"Path to config file"`

	ReplaceVM ReplaceVMCommand `command:"replace-vm" description:"Create a new VM with the old VM's IP"`
	DeleteVM  DeleteVMCommand  `command:"delete-vm" description:"Delete the VM that has the specified identifier"`
}
var Cliaas CliaasCommand

type ConfigFilePath

type ConfigFilePath string

func (*ConfigFilePath) UnmarshalFlag

func (c *ConfigFilePath) UnmarshalFlag(value string) error

type DeleteVMCommand added in v0.1.2

type DeleteVMCommand struct {
	Identifier string `short:"i" long:"identifier" required:"true" description:"Identifier of the VM to delete"`
}

func (*DeleteVMCommand) Execute added in v0.1.2

func (c *DeleteVMCommand) Execute([]string) error

type ReplaceVMCommand

type ReplaceVMCommand struct {
	Identifier string `long:"identifier" required:"true" description:"Identifier of the VM that is being replaced"`
}

func (*ReplaceVMCommand) Execute

func (r *ReplaceVMCommand) Execute([]string) error

type VersionCommand

type VersionCommand struct {
}

func (*VersionCommand) Execute

func (c *VersionCommand) Execute([]string) error

Jump to

Keyboard shortcuts

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