commands

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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"`
	GetVMDiskSize GetVMDiskSizeCommand `command:"get-vm-disk-size" description:"Get disk size for VM that has the specified identifier"`
	Version       VersionCommand       `command:"version" description:"Display the current version of the CLI"`
}
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 GetVMDiskSizeCommand added in v0.2.4

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

func (*GetVMDiskSizeCommand) Execute added in v0.2.4

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

type ReplaceVMCommand

type ReplaceVMCommand struct {
	Identifier string `long:"identifier" required:"true" description:"Identifier of the VM that is being replaced"`
	DiskSizeGB int64  `long:"disk-size-gb" required:"false" default:"100" description:"Disk size 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