Documentation ¶
Index ¶
- Constants
- Variables
- func CreateStorageHandler(args *gocli.Args) error
- func DeleteServerHandler(args *gocli.Args) error
- func ListAllDataCentersHandler() error
- func ListAllImagesHandler() error
- func ListAllServersHandler() error
- func ListAllSnapshotsHandler() error
- func ListAllStorages() error
- func StartServerHandler(args *gocli.Args) error
- func StopServerHandler(args *gocli.Args) error
- type CreateServer
- type CreateStorage
- type DeleteServer
- type DeleteStorage
- type DescribeDataCenterHandler
- type RollbackSnapshotHandler
- type StartServer
- type StopServer
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 DeleteServerHandler ¶
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 StopServerHandler ¶
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 ¶
func (a *DescribeDataCenterHandler) Run() error
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
Click to show internal directories.
Click to hide internal directories.