cloud

package
v0.0.0-...-26cb265 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

type CloudProvider interface {
	CreateVolume(*config.CreateVolumeConfig) *CreatedVolume
	CreateServer(*config.CreateServerConfig, *CreatedVolume) *CreatedServerReference
	WaitForServerToBeReady(*CreatedServerReference) *CreatedServer
	DeleteVolume(*CreatedVolume)
	DeleteServer(*CreatedServerReference)
}

Cloud provider

func GetCloudProvider

func GetCloudProvider(coreConfig *config.CoreConfig, cloudConfig *config.CloudConfig) CloudProvider

func GetDigitalOceanCloud

func GetDigitalOceanCloud(coreConfig *config.CoreConfig, config *config.CloudConfig) CloudProvider

GetDigitalOceanCloud -

type CreatedServer

type CreatedServer struct {
	Reference CreatedServerReference

	IPAddress  string
	SSHPort    int
	OSUsername string
}

CreatedServer - info about created server. Available after server is ready.

type CreatedServerReference

type CreatedServerReference struct {
	DO *DigitalOceanCreatedServerExtras
}

type CreatedVolume

type CreatedVolume struct {
	ID              string
	Name            string
	FileSystemMount string
}

CreatedVolume - info about created volume

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