actions

package
v0.0.0-...-e104627 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLI_DATACENTER_ID                 = "-d"
	CLI_NAME                          = "-n"
	CLI_SIZE                          = "-s"
	CLI_IMAGE_ID                      = "--image-id"
	CLI_RAM                           = "--ram"
	CLI_CORES                         = "--cores"
	CLI_OS_TYPE                       = "--os-type"
	CLI_INTERNET_ACCESS               = "--public"
	CLI_LAN_ID                        = "--lan-id"
	CLI_ROLLBACK_SNAPSHOT_STORAGE_ID  = "--storage-id"
	CLI_ROLLBACK_SNAPSHOT_SNAPSHOT_ID = "--snapshot-id"
	USAGE_USE_IDS                     = "ID [ID...]"
)
View Source
const (
	ENV_PROFITBRICKS_DEFAULT_DATA_CENTER_ID = "PROFITBRICKS_DEFAULT_DC_ID"
)

Variables

View Source
var DescribeDataCenter *gocli.Action

Functions

func CreateStorageHandler

func CreateStorageHandler(args *gocli.Args) error

func DeleteServerHandler

func DeleteServerHandler(args *gocli.Args) error

func ListAllDataCentersHandler

func ListAllDataCentersHandler() error

func ListAllImagesHandler

func ListAllImagesHandler() error

func ListAllServersHandler

func ListAllServersHandler() error

func ListAllSnapshotsHandler

func ListAllSnapshotsHandler() error

func ListAllStorages

func ListAllStorages() error

func StartServerHandler

func StartServerHandler(args *gocli.Args) error

func StopServerHandler

func StopServerHandler(args *gocli.Args) error

Types

type CreateServer

type CreateServer struct {
	DataCenterId   string `cli:"type=opt short=d required=true"`
	Name           string `cli:"type=arg required=true"`
	Ram            int    `cli:"type=opt short=r default=1024"`
	Cores          int    `cli:"type=opt short=c default=1"`
	OsType         string `cli:"type=opt short=o default=Linux"`
	InternetAccess bool   `cli:"type=opt long=internet-access"`
	LanId          int    `cli:"type=opt short=l default=1"`
	ImageId        string `cli:"type=opt short=i"`
}

func (*CreateServer) Run

func (a *CreateServer) Run() error

type CreateStorage

type CreateStorage struct {
	DataCenterId string `cli:"type=opt short=d required=true"`
	Name         string `cli:"type=arg required=true"`
	Size         int    `cli:"type=opt short=s required=true"`
	MountImageId string `cli:"type=opt short=i"`
}

func (*CreateStorage) Run

func (a *CreateStorage) Run() error

type DeleteServer

type DeleteServer struct {
	Id string `cli:"type=arg required=true"`
}

func (*DeleteServer) Run

func (a *DeleteServer) Run() error

type DeleteStorage

type DeleteStorage struct {
	Id string `cli:"type=arg required=true"`
}

func (*DeleteStorage) Run

func (a *DeleteStorage) Run() error

type DescribeDataCenterHandler

type DescribeDataCenterHandler struct {
	DataCenterId string `cli:"type=arg required=true"`
}

func (*DescribeDataCenterHandler) Run

type RollbackSnapshotHandler

type RollbackSnapshotHandler struct {
	StorageId  string `cli:"type=arg required=true"`
	SnapshotId string `cli:"type=arg required=true"`
}

func (*RollbackSnapshotHandler) Run

func (a *RollbackSnapshotHandler) Run() error

type StartServer

type StartServer struct {
	Id string `cli:"type=arg required=true"`
}

func (*StartServer) Run

func (a *StartServer) Run() error

type StopServer

type StopServer struct {
	Id string `cli:"type=arg required=true"`
}

func (*StopServer) Run

func (a *StopServer) Run() error

Jump to

Keyboard shortcuts

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