Versions in this module Expand all Collapse all v0 v0.1.3 Sep 20, 2013 v0.1.1 Aug 26, 2013 Changes in this version + const RENAME_USAGE + func RenameDropletAction(args *gocli.Args) error type Account + func (a *Account) RenameDroplet(id int, name string) (*EventResponse, error) v0.1.0 Aug 25, 2013 Changes in this version + const API_ROOT + const DIGITAL_OCEAN_API_KEY + const DIGITAL_OCEAN_CLIENT_ID + const DIGITAL_OCEAN_DEFAULT_IMAGE_ID + const DIGITAL_OCEAN_DEFAULT_REGION_ID + const DIGITAL_OCEAN_DEFAULT_SIZE_ID + const DIGITAL_OCEAN_DEFULT_SSH_KEY + const IMAGE_UBUNTU_13_04_64BIT + const REGION_SF1 + const SIZE_512M + const VERSION + var GITCOMMIT string + func CreateDropletAction(a *gocli.Args) error + func DescribeDropletAction(args *gocli.Args) error + func DestroyDropletAction(args *gocli.Args) error + func ExitWith(err interface{}) + func ListDropletsAction(args *gocli.Args) (e error) + func ListImagesAction(args *gocli.Args) error + func ListKeysAction(args *gocli.Args) error + func ListRegionsAction(args *gocli.Args) error + func ListSizesAction(args *gocli.Args) error + func RebuildDropletAction(a *gocli.Args) error + func VersionAction(args *gocli.Args) error + func WaitForDroplet(droplet *Droplet) error + type Account struct + ApiKey string + ClientId string + ImageId int + Name string + RegionId int + SizeId int + SshKey int + func AccountFromEnv() (*Account, error) + func CurrentAccount() *Account + func LoadAccount(name string) (account *Account, e error) + func NewAccount(clientId, apiKey string) *Account + func (a *Account) GetDroplet(id int) (*Droplet, error) + func (a *Account) RebuildDroplet(id int, imageId int) (*EventResponse, error) + func (account *Account) CachedImages() (hash map[int]string, e error) + func (account *Account) CachedRegions() (hash map[int]string, e error) + func (account *Account) CachedSizes() (hash map[int]string, e error) + func (account *Account) CreateDroplet(droplet *Droplet) (out *Droplet, e error) + func (account *Account) DefaultDroplet() (droplet *Droplet) + func (account *Account) DestroyDroplet(id int) (*EventResponse, error) + func (account *Account) ImageName(i int) string + func (account *Account) RegionName(i int) string + func (account *Account) SizeName(i int) string + func (account *Account) Sizes() (sizes []*Size, e error) + func (account *Account) SshKeys() (keys []*SshKey, e error) + func (self *Account) Droplets() (droplets []*Droplet, e error) + func (self *Account) GetImage(id int) (image *Image, e error) + func (self *Account) Images() (images []*Image, e error) + func (self *Account) Regions() (regions []*Region, e error) + type Config struct + Accounts []*Account + func LoadConfig() (config *Config, e error) + func (c *Config) Account(name string) (account *Account, e error) + type Droplet struct + CreatedAt time.Time + Id int + ImageId int + IpAddress string + Locked bool + Name string + RegionId int + SizeId int + SshKey int + Status string + func (droplet *Droplet) Reload() error + type DropletResponse struct + Status string + type DropletsResponse struct + Droplets []*Droplet + Status string + type ErrorResponse struct + Error string + Status string + type EventResponse struct + ErrorMessage string + EventId int + Status string + type Image struct + Distribution string + Id int + Name string + type ImageResponse struct + Image *Image + Status string + type ImagesReponse struct + Images []*Image + Status string + type Region struct + Id int + Name string + type RegionResponse struct + Regions []*Region + Status string + type Size struct + Id int + Name string + type SizeResponse struct + Sizes []*Size + Status string + type SshKey struct + Id int + Name string + type SshKeysResponse struct + Keys []*SshKey + Status string