digitalocean

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRegion string = "sfo1"

DefaultRegion is assigned to Machines without a specified region

Variables

View Source
var Regions = []string{"ams1", "ams2", "ams3", "blr1", "fra1", "lon1", "nyc1", "nyc2",
	"nyc3", "sfo1", "sfo2", "sgp1", "tor1"}

Regions supported by the Digital Ocean API

Functions

This section is empty.

Types

type Cluster

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

The Cluster object represents a connection to DigitalOcean.

func New

func New(namespace, region string) (*Cluster, error)

New starts a new client session with the API key provided in ~/.digitalocean/key.

func (Cluster) Boot

func (clst Cluster) Boot(bootSet []machine.Machine) error

Boot will boot every machine in a goroutine, and wait for the machines to come up.

func (Cluster) List

func (clst Cluster) List() ([]machine.Machine, error)

List will fetch all droplets that have the same name as the cluster namespace.

func (Cluster) SetACLs

func (clst Cluster) SetACLs(acls []acl.ACL) error

SetACLs is not supported in DigitalOcean.

func (Cluster) Stop

func (clst Cluster) Stop(machines []machine.Machine) error

Stop stops each machine and deletes their attached volumes.

func (Cluster) UpdateFloatingIPs

func (clst Cluster) UpdateFloatingIPs(machines []machine.Machine) error

UpdateFloatingIPs currently returns an error.

Jump to

Keyboard shortcuts

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