From 32ac48f00cf9fa717005437ae68165abea0b4b7b Mon Sep 17 00:00:00 2001 From: bryanl Date: Fri, 18 Sep 2015 09:10:59 -0400 Subject: [PATCH] It's DigitalOcean --- README.md | 4 ++-- account.go | 2 +- domains.go | 6 +++--- droplet_actions.go | 2 +- droplets.go | 2 +- godo.go | 4 ++-- image_actions.go | 2 +- images.go | 2 +- keys.go | 2 +- regions.go | 2 +- sizes.go | 2 +- strings.go | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 75dc9f22..03d0c076 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Godo is a Go client library for accessing the DigitalOcean V2 API. You can view the client API docs here: [http://godoc.org/github.com/digitalocean/godo](http://godoc.org/github.com/digitalocean/godo) -You can view Digital Ocean API docs here: [https://developers.digitalocean.com/documentation/v2/](https://developers.digitalocean.com/documentation/v2/) +You can view DigitalOcean API docs here: [https://developers.digitalocean.com/documentation/v2/](https://developers.digitalocean.com/documentation/v2/) ## Usage @@ -22,7 +22,7 @@ access different parts of the DigitalOcean API. Currently, Personal Access Token (PAT) is the only method of authenticating with the API. You can manage your tokens -at the Digital Ocean Control Panel [Applications Page](https://cloud.digitalocean.com/settings/applications). +at the DigitalOcean Control Panel [Applications Page](https://cloud.digitalocean.com/settings/applications). You can then use your token to create a new client: diff --git a/account.go b/account.go index 8fad143f..7623c8cb 100644 --- a/account.go +++ b/account.go @@ -1,7 +1,7 @@ package godo // AccountService is an interface for interfacing with the Account -// endpoints of the Digital Ocean API +// endpoints of the DigitalOcean API // See: https://developers.digitalocean.com/documentation/v2/#account type AccountService interface { Get() (*Account, *Response, error) diff --git a/domains.go b/domains.go index 821ece3b..4860092c 100644 --- a/domains.go +++ b/domains.go @@ -4,7 +4,7 @@ import "fmt" const domainsBasePath = "v2/domains" -// DomainsService is an interface for managing DNS with the Digital Ocean API. +// DomainsService is an interface for managing DNS with the DigitalOcean API. // See: https://developers.digitalocean.com/documentation/v2#domains and // https://developers.digitalocean.com/documentation/v2#domain-records type DomainsService interface { @@ -28,14 +28,14 @@ type DomainsServiceOp struct { var _ DomainsService = &DomainsServiceOp{} -// Domain represents a Digital Ocean domain +// Domain represents a DigitalOcean domain type Domain struct { Name string `json:"name"` TTL int `json:"ttl"` ZoneFile string `json:"zone_file"` } -// domainRoot represents a response from the Digital Ocean API +// domainRoot represents a response from the DigitalOcean API type domainRoot struct { Domain *Domain `json:"domain"` } diff --git a/droplet_actions.go b/droplet_actions.go index 73091146..17b53c29 100644 --- a/droplet_actions.go +++ b/droplet_actions.go @@ -9,7 +9,7 @@ import ( type ActionRequest map[string]interface{} // DropletActionsService is an interface for interfacing with the droplet actions -// endpoints of the Digital Ocean API +// endpoints of the DigitalOcean API // See: https://developers.digitalocean.com/documentation/v2#droplet-actions type DropletActionsService interface { Shutdown(int) (*Action, *Response, error) diff --git a/droplets.go b/droplets.go index eef289ff..0ac48748 100644 --- a/droplets.go +++ b/droplets.go @@ -8,7 +8,7 @@ import ( const dropletBasePath = "v2/droplets" // DropletsService is an interface for interfacing with the droplet -// endpoints of the Digital Ocean API +// endpoints of the DigitalOcean API // See: https://developers.digitalocean.com/documentation/v2#droplets type DropletsService interface { List(*ListOptions) ([]Droplet, *Response, error) diff --git a/godo.go b/godo.go index 2e4d455f..c5052a53 100644 --- a/godo.go +++ b/godo.go @@ -71,7 +71,7 @@ type ListOptions struct { PerPage int `url:"per_page,omitempty"` } -// Response is a Digital Ocean response. This wraps the standard http.Response returned from DigitalOcean. +// Response is a DigitalOcean response. This wraps the standard http.Response returned from DigitalOcean. type Response struct { *http.Response @@ -133,7 +133,7 @@ func addOptions(s string, opt interface{}) (string, error) { return origURL.String(), nil } -// NewClient returns a new Digital Ocean API client. +// NewClient returns a new DigitalOcean API client. func NewClient(httpClient *http.Client) *Client { if httpClient == nil { httpClient = http.DefaultClient diff --git a/image_actions.go b/image_actions.go index 0bb355ab..89a9d173 100644 --- a/image_actions.go +++ b/image_actions.go @@ -3,7 +3,7 @@ package godo import "fmt" // ImageActionsService is an interface for interfacing with the image actions -// endpoints of the Digital Ocean API +// endpoints of the DigitalOcean API // See: https://developers.digitalocean.com/documentation/v2#image-actions type ImageActionsService interface { Get(int, int) (*Action, *Response, error) diff --git a/images.go b/images.go index e955412a..7acee84e 100644 --- a/images.go +++ b/images.go @@ -5,7 +5,7 @@ import "fmt" const imageBasePath = "v2/images" // ImagesService is an interface for interfacing with the images -// endpoints of the Digital Ocean API +// endpoints of the DigitalOcean API // See: https://developers.digitalocean.com/documentation/v2#images type ImagesService interface { List(*ListOptions) ([]Image, *Response, error) diff --git a/keys.go b/keys.go index 355c75bb..b6e5c412 100644 --- a/keys.go +++ b/keys.go @@ -5,7 +5,7 @@ import "fmt" const keysBasePath = "v2/account/keys" // KeysService is an interface for interfacing with the keys -// endpoints of the Digital Ocean API +// endpoints of the DigitalOcean API // See: https://developers.digitalocean.com/documentation/v2#keys type KeysService interface { List(*ListOptions) ([]Key, *Response, error) diff --git a/regions.go b/regions.go index 361c4b9b..e44e8bcd 100644 --- a/regions.go +++ b/regions.go @@ -1,7 +1,7 @@ package godo // RegionsService is an interface for interfacing with the regions -// endpoints of the Digital Ocean API +// endpoints of the DigitalOcean API // See: https://developers.digitalocean.com/documentation/v2#regions type RegionsService interface { List(*ListOptions) ([]Region, *Response, error) diff --git a/sizes.go b/sizes.go index 56812e26..7f454e7e 100644 --- a/sizes.go +++ b/sizes.go @@ -1,7 +1,7 @@ package godo // SizesService is an interface for interfacing with the size -// endpoints of the Digital Ocean API +// endpoints of the DigitalOcean API // See: https://developers.digitalocean.com/documentation/v2#sizes type SizesService interface { List(*ListOptions) ([]Size, *Response, error) diff --git a/strings.go b/strings.go index 4c94a1fa..bbdbc924 100644 --- a/strings.go +++ b/strings.go @@ -8,7 +8,7 @@ import ( var timestampType = reflect.TypeOf(Timestamp{}) -// Stringify attempts to create a string representation of Digital Ocean types +// Stringify attempts to create a string representation of DigitalOcean types func Stringify(message interface{}) string { var buf bytes.Buffer v := reflect.ValueOf(message)