cloud

package
v0.0.0-...-87ffe1f Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: MIT Imports: 6 Imported by: 0

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

type CreatedVolume struct {
	ID              string
	Name            string
	FileSystemMount string
}

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.

type DigitalOceanCreatedServerExtras

type DigitalOceanCreatedServerExtras struct {
	ID              int
	CreatedSSHKeyId *int // We only want to delete the ssh key from your account if Purslane created it. That's why it's optional.
}

Jump to

Keyboard shortcuts

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