Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPlan = "1xCPU-2GB" DefaultHostname = "custom" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface {
CreateServer(*ServerOpts) (*upcloud.ServerDetails, error)
DeleteServer(string) error
StopServer(string) error
// TODO: rename method or split into two separate method GetStorageByUUID and GetTemplateByName
GetStorage(storageUUID, templateName string) (*upcloud.Storage, error)
RenameStorage(storageUUID, name string) (*upcloud.Storage, error)
GetServerStorage(string) (*upcloud.ServerStorageDevice, error)
CloneStorage(storageUUID, zone, title string) (*upcloud.Storage, error)
GetTemplateByName(name, zone string) (*upcloud.Storage, error)
CreateTemplate(storageUUID, templateTitle string) (*upcloud.Storage, error)
CreateTemplateStorage(title, zone string, size int) (*upcloud.Storage, error)
ImportStorage(storageUUID, contentType string, f io.Reader) (*upcloud.StorageImportDetails, error)
WaitStorageOnline(storageUUID string) (*upcloud.Storage, error)
DeleteTemplate(string) error
DeleteStorage(storageUUID string) error
GetAvailableZones() []string
}
func NewDriver ¶
func NewDriver(c *DriverConfig) Driver
type DriverConfig ¶
type ServerOpts ¶
Click to show internal directories.
Click to hide internal directories.