Documentation ¶
Index ¶
- Constants
- type DigitalOcean
- func (do DigitalOcean) CreateInstance(config *HostConfig) (string, error)
- func (do *DigitalOcean) CreateKey(localKeysPath, localKeyName, name string) (*godo.Key, error)
- func (do *DigitalOcean) GetKeyOrCreate(localKeysPath, localKeyName string) (*godo.Key, error)
- func (do *DigitalOcean) ListKeys(page, perPage int) ([]godo.Key, error)
- type HostConfig
- type Proxy
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 (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
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)
Click to show internal directories.
Click to hide internal directories.