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
GetStorage(string, string) (*upcloud.Storage, error)
GetServerStorage(string) (*upcloud.ServerStorageDevice, error)
CloneStorage(string, string, string) (*upcloud.Storage, error)
CreateTemplate(string, string) (*upcloud.Storage, error)
DeleteTemplate(string) error
}
func NewDriver ¶
func NewDriver(c *DriverConfig) Driver
type DriverConfig ¶
type ServerOpts ¶
Click to show internal directories.
Click to hide internal directories.