Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteServer ¶
func DeleteServer(cloudConfig *config.CloudConfig, serverReference *CreatedServerReference)
func DeleteVolume ¶
func DeleteVolume(cloudConfig *config.CloudConfig, createdVolume *CreatedVolume)
Types ¶
type Cloud ¶
type Cloud interface {
// contains filtered or unexported methods
}
Cloud provider
func GetDigitalOceanCloud ¶
func GetDigitalOceanCloud(config *config.CloudConfig) Cloud
GetDigitalOceanCloud -
type CreatedServer ¶
type CreatedServer struct { Reference CreatedServerReference IPAddress string SSHPort int OSUsername string }
CreatedServer - info about created server. Available after server is ready.
func WaitForServerToBeReady ¶
func WaitForServerToBeReady(cloudConfig *config.CloudConfig, serverReference *CreatedServerReference) *CreatedServer
type CreatedServerReference ¶
type CreatedServerReference struct {
DO *DigitalOceanCreatedServerExtras
}
func CreateServer ¶
func CreateServer(coreConfig *config.CoreConfig, cloudConfig *config.CloudConfig, createServerConfig *config.CreateServerConfig, createdVolume *CreatedVolume) *CreatedServerReference
CreateServer - create server
type CreatedVolume ¶
CreatedVolume - info about created volume
func CreateVolume ¶
func CreateVolume(cloudConfig *config.CloudConfig, config *config.CreateVolumeConfig) *CreatedVolume
CreateVolume Creates a volume from the cloud provider the user wants to run.
Click to show internal directories.
Click to hide internal directories.