do

package
v0.0.0-...-831067b Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSize = "s-1vcpu-1gb"

Variables

This section is empty.

Functions

This section is empty.

Types

type DigitalOcean

type DigitalOcean struct {
	// contains filtered or unexported fields
}

func NewDOProvider

func NewDOProvider(token string) *DigitalOcean

NewDOProvider

func (DigitalOcean) CreateInstance

func (do DigitalOcean) CreateInstance(config *HostConfig) (string, error)

func (*DigitalOcean) CreateKey

func (do *DigitalOcean) CreateKey(localKeysPath, localKeyName, name string) (*godo.Key, error)

func (*DigitalOcean) GetKeyOrCreate

func (do *DigitalOcean) GetKeyOrCreate(localKeysPath, localKeyName string) (*godo.Key, error)

GetKeyOrCreate will get a key pair from DO or create one if one doesn't exist

func (*DigitalOcean) ListKeys

func (do *DigitalOcean) ListKeys(page, perPage int) ([]godo.Key, error)

type HostConfig

type HostConfig struct {
	// contains filtered or unexported fields
}

func NewHostConfig

func NewHostConfig(region, name, image, sshKeysPath, sshKeyName string) *HostConfig

func (*HostConfig) AddProxy

func (c *HostConfig) AddProxy(sourcePort, targetPort int) *HostConfig

func (*HostConfig) SetHostName

func (c *HostConfig) SetHostName(name string)

type Proxy

type Proxy struct {
	SourcePort, TargetPort int
}

Jump to

Keyboard shortcuts

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