Versions in this module Expand all Collapse all v0 v0.2.0 Apr 16, 2015 v0.2.0-rc3 Apr 1, 2015 v0.2.0-rc2 Mar 26, 2015 v0.2.0-rc1 Mar 23, 2015 v0.1.0 Feb 26, 2015 Changes in this version + const ActionCompleted + const ActionInProgress + func Bool(v bool) *bool + func CheckResponse(r *http.Response) error + func Int(v int) *int + func StreamToString(stream io.Reader) string + func String(v string) *string + func Stringify(message interface{}) string + type Action struct + CompletedAt *Timestamp + ID int + ResourceID int + ResourceType string + StartedAt *Timestamp + Status string + Type string + func (a Action) String() string + type ActionRequest struct + Params map[string]interface{} + Type string + func (d ActionRequest) String() string + type ActionsService interface + Get func(int) (*Action, *Response, error) + List func(*ListOptions) ([]Action, *Response, error) + type ActionsServiceOp struct + func (s *ActionsServiceOp) Get(id int) (*Action, *Response, error) + func (s *ActionsServiceOp) List(opt *ListOptions) ([]Action, *Response, error) + type Client struct + Actions ActionsService + BaseURL *url.URL + Domains DomainsService + DropletActions DropletActionsService + Droplets DropletsService + ImageActions ImageActionsService + Images ImagesService + Keys KeysService + Rate Rate + Regions RegionsService + Sizes SizesService + UserAgent string + func NewClient(httpClient *http.Client) *Client + func (c *Client) Do(req *http.Request, v interface{}) (*Response, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + type Domain struct + Name string + TTL int + ZoneFile string + func (d Domain) String() string + type DomainCreateRequest struct + IPAddress string + Name string + type DomainRecord struct + Data string + ID int + Name string + Port int + Priority int + Type string + Weight int + func (d DomainRecord) String() string + type DomainRecordEditRequest struct + Data string + Name string + Port int + Priority int + Type string + Weight int + func (d DomainRecordEditRequest) String() string + type DomainRecordRoot struct + DomainRecord *DomainRecord + type DomainRecordsRoot struct + DomainRecords []DomainRecord + Links *Links + type DomainRoot struct + Domain *Domain + type DomainsService interface + Create func(*DomainCreateRequest) (*DomainRoot, *Response, error) + CreateRecord func(string, *DomainRecordEditRequest) (*DomainRecord, *Response, error) + Delete func(string) (*Response, error) + DeleteRecord func(string, int) (*Response, error) + EditRecord func(string, int, *DomainRecordEditRequest) (*DomainRecord, *Response, error) + Get func(string) (*DomainRoot, *Response, error) + List func(*ListOptions) ([]Domain, *Response, error) + Record func(string, int) (*DomainRecord, *Response, error) + Records func(string, *ListOptions) ([]DomainRecord, *Response, error) + type DomainsServiceOp struct + func (s *DomainsServiceOp) Create(createRequest *DomainCreateRequest) (*DomainRoot, *Response, error) + func (s *DomainsServiceOp) CreateRecord(domain string, createRequest *DomainRecordEditRequest) (*DomainRecord, *Response, error) + func (s *DomainsServiceOp) Delete(name string) (*Response, error) + func (s *DomainsServiceOp) DeleteRecord(domain string, id int) (*Response, error) + func (s *DomainsServiceOp) EditRecord(domain string, id int, editRequest *DomainRecordEditRequest) (*DomainRecord, *Response, error) + func (s *DomainsServiceOp) Get(name string) (*DomainRoot, *Response, error) + func (s *DomainsServiceOp) Record(domain string, id int) (*DomainRecord, *Response, error) + func (s *DomainsServiceOp) Records(domain string, opt *ListOptions) ([]DomainRecord, *Response, error) + func (s DomainsServiceOp) List(opt *ListOptions) ([]Domain, *Response, error) + type Droplet struct + ActionIDs []int + BackupIDs []int + Disk int + ID int + Image *Image + Locked bool + Memory int + Name string + Networks *Networks + Region *Region + Size *Size + SnapshotIDs []int + Status string + Vcpus int + func (d Droplet) String() string + type DropletActionsService interface + Get func(int, int) (*Action, *Response, error) + GetByURI func(string) (*Action, *Response, error) + PowerCycle func(int) (*Action, *Response, error) + PowerOff func(int) (*Action, *Response, error) + PowerOn func(int) (*Action, *Response, error) + Reboot func(int) (*Action, *Response, error) + Rename func(int, string) (*Action, *Response, error) + Resize func(int, string) (*Action, *Response, error) + Restore func(int, int) (*Action, *Response, error) + Shutdown func(int) (*Action, *Response, error) + type DropletActionsServiceOp struct + func (s *DropletActionsServiceOp) Get(dropletID, actionID int) (*Action, *Response, error) + func (s *DropletActionsServiceOp) GetByURI(rawurl string) (*Action, *Response, error) + func (s *DropletActionsServiceOp) PowerCycle(id int) (*Action, *Response, error) + func (s *DropletActionsServiceOp) PowerOff(id int) (*Action, *Response, error) + func (s *DropletActionsServiceOp) PowerOn(id int) (*Action, *Response, error) + func (s *DropletActionsServiceOp) Reboot(id int) (*Action, *Response, error) + func (s *DropletActionsServiceOp) Rename(id int, name string) (*Action, *Response, error) + func (s *DropletActionsServiceOp) Resize(id int, sizeSlug string) (*Action, *Response, error) + func (s *DropletActionsServiceOp) Restore(id, imageID int) (*Action, *Response, error) + func (s *DropletActionsServiceOp) Shutdown(id int) (*Action, *Response, error) + type DropletCreateRequest struct + Backups bool + IPv6 bool + Image string + Name string + PrivateNetworking bool + Region string + SSHKeys []interface{} + Size string + UserData string + func (d DropletCreateRequest) String() string + type DropletRoot struct + Droplet *Droplet + Links *Links + type DropletsService interface + Create func(*DropletCreateRequest) (*DropletRoot, *Response, error) + Delete func(int) (*Response, error) + Get func(int) (*DropletRoot, *Response, error) + List func(*ListOptions) ([]Droplet, *Response, error) + type DropletsServiceOp struct + func (s *DropletsServiceOp) Create(createRequest *DropletCreateRequest) (*DropletRoot, *Response, error) + func (s *DropletsServiceOp) Delete(dropletID int) (*Response, error) + func (s *DropletsServiceOp) Get(dropletID int) (*DropletRoot, *Response, error) + func (s *DropletsServiceOp) List(opt *ListOptions) ([]Droplet, *Response, error) + type ErrorResponse struct + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + type Image struct + Distribution string + ID int + Name string + Public bool + Regions []string + Slug string + func (i Image) String() string + type ImageActionsService interface + Get func(int, int) (*Action, *Response, error) + Transfer func(int, *ActionRequest) (*Action, *Response, error) + type ImageActionsServiceOp struct + func (i *ImageActionsServiceOp) Get(imageID, actionID int) (*Action, *Response, error) + func (i *ImageActionsServiceOp) Transfer(imageID int, transferRequest *ActionRequest) (*Action, *Response, error) + type ImagesService interface + List func(*ListOptions) ([]Image, *Response, error) + type ImagesServiceOp struct + func (s *ImagesServiceOp) List(opt *ListOptions) ([]Image, *Response, error) + type Key struct + Fingerprint string + ID int + Name string + PublicKey string + func (s Key) String() string + type KeyCreateRequest struct + Name string + PublicKey string + type KeysService interface + Create func(*KeyCreateRequest) (*Key, *Response, error) + DeleteByFingerprint func(string) (*Response, error) + DeleteByID func(int) (*Response, error) + GetByFingerprint func(string) (*Key, *Response, error) + GetByID func(int) (*Key, *Response, error) + List func(*ListOptions) ([]Key, *Response, error) + type KeysServiceOp struct + func (s *KeysServiceOp) Create(createRequest *KeyCreateRequest) (*Key, *Response, error) + func (s *KeysServiceOp) DeleteByFingerprint(fingerprint string) (*Response, error) + func (s *KeysServiceOp) DeleteByID(keyID int) (*Response, error) + func (s *KeysServiceOp) GetByFingerprint(fingerprint string) (*Key, *Response, error) + func (s *KeysServiceOp) GetByID(keyID int) (*Key, *Response, error) + func (s *KeysServiceOp) List(opt *ListOptions) ([]Key, *Response, error) + type LinkAction struct + HREF string + ID int + Rel string + func (la *LinkAction) Get(client *Client) (*Action, *Response, error) + type Links struct + Actions []LinkAction + Pages *Pages + func (l *Links) CurrentPage() (int, error) + func (l *Links) IsLastPage() bool + type ListOptions struct + Page int + PerPage int + type Network struct + Gateway string + IPAddress string + Netmask string + Type string + func (n Network) String() string + type Networks struct + V4 []Network + V6 []Network + type Pages struct + First string + Last string + Next string + Prev string + type Rate struct + Limit int + Remaining int + Reset Timestamp + func (r Rate) String() string + type Region struct + Available bool + Features []string + Name string + Sizes []string + Slug string + func (r Region) String() string + type RegionsService interface + List func(*ListOptions) ([]Region, *Response, error) + type RegionsServiceOp struct + func (s *RegionsServiceOp) List(opt *ListOptions) ([]Region, *Response, error) + type Response struct + Links *Links + Monitor string + type Size struct + Disk int + Memory int + PriceHourly float64 + PriceMonthly float64 + Regions []string + Slug string + Vcpus int + func (s Size) String() string + type SizesService interface + List func(*ListOptions) ([]Size, *Response, error) + type SizesServiceOp struct + func (s *SizesServiceOp) List(opt *ListOptions) ([]Size, *Response, error) + type Timestamp struct + func (t *Timestamp) UnmarshalJSON(data []byte) (err error) + func (t Timestamp) Equal(u Timestamp) bool + func (t Timestamp) String() string v0.1.0-rc5 Feb 22, 2015 v0.1.0-rc4 Feb 16, 2015 v0.1.0-rc3 Feb 10, 2015 v0.1.0-rc2 Jan 28, 2015 v0.1.0-rc1 Jan 21, 2015