Commit Graph

36 Commits

Author SHA1 Message Date
Antoine Grondin f628842763 k8saas: add support for Kubernetes endpoints 2018-11-12 15:02:26 -08:00
Mike Chittenden 0f1b9ca783 add projects support 2018-10-16 17:29:54 +00:00
Hugo Corbucci b68700bad8 Add support to tagging images 2018-10-01 12:20:47 -04:00
lxfontes 5b02696397 Releasing 1.4.2 2018-08-30 13:37:34 -04:00
Sunny Beatteay 43aa31cf9c storage: fix cdn flush cache cdn endpoint and fix changelog 2018-08-23 14:30:54 -04:00
Sunny Beatteay 96f3a269f0 storage: add support for spaces cdn 2018-08-22 09:41:21 -04:00
Adam Wolfe Gordon 51f18c0e42 Updating version to v1.3.0 2018-05-24 10:43:01 -06:00
Maurício Linhares 970b46ffe4
Updating version to v1.2.0 2018-05-08 16:49:12 -04:00
Iheanyi Ekechukwu e6249e5059 Remove support for Go 1.6 (#166)
* Move DoRequest* to godo package with stdlib context

* Use stdlib context package in place of godo context.

* Remove Go 1.6 from TravisCI configuration.

* Use stdlib context in util and tests instead of godo context.

* Add in Go 1.8, 1.9, and 1.10 to TravisCI configuration.

* Put 1.10 in quotes.
2018-05-08 16:24:29 -04:00
Arve Knudsen ed58d2b381 Handle non-json errors from the API 2017-11-21 11:33:58 +01:00
Joonas Bergius ac5e3a015f Follow User-Agent header field recommendations 2017-09-22 17:30:06 -06:00
Wioletta Holownia 4fa9e9d999 Add support for Firewalls. (#145)
* Add support for Firewalls.

* Fix chagelog PR id.

* Add link to public api docs.
2017-06-06 09:50:45 -04:00
akutz 8ed9e9ea6c Portable Go Context Usage
This patch updates the godo package to use a portable Go context -- a
Context that works with Go versions prior to Go 1.7 as well as Go 1.7
and onwards.
2017-04-07 15:32:33 -05:00
lxfontes e36b2db83c
bumping to 1.0.0 2017-03-10 15:46:07 -05:00
Antoine Grondin dc14e4b04d add context.Context to all calls 2017-02-23 14:25:29 -05:00
Wioletta Holownia 19ceffc21b Add CertificatesService for managing certificates with the DigitalOcean API. (#126)
* Add CertificatesService.

* Code review changes.
2017-02-17 13:18:41 -05:00
Viola Holownia c99e714f33 Add support for LoadBalancers 2017-02-14 15:36:18 -05:00
Term1nal b814e84f48 make linters happy 2016-12-20 16:00:17 -08:00
Phillip Baker e715166fe5 Add snapshots endpoints, unify code with storage snapshots. 2016-11-18 11:26:43 -05:00
Antoine Grondin 979e3b310f storage: support for storage API 2016-06-27 13:45:59 -04:00
Bryan Liles cacf7fa36e Merge pull request #100 from tbalthazar/issue-99
Changing the User Agent doesn't work as expected
2016-06-14 11:25:00 -04:00
Thomas Balthazar cb325e7136 Changing the User Agent doesn't work as expected
Fixes #99
2016-06-14 17:17:36 +02:00
Thomas Balthazar 22de7c48d5 Make sure Client.New() init the different services
Fixes #97
2016-06-14 16:37:22 +02:00
bryanl 2db8830c36 create functional option based initializer for Client 2016-04-24 12:54:55 -04:00
Nan Zhong 78b1e66bf2 Add tagging to godo 2016-03-17 00:34:29 -04:00
bryanl d1aa3987e9 updating rate limit headers 2016-01-30 11:48:30 -05:00
Benjamin Jorand c1326f1c9d Fix typo in godo.go comment 2016-01-23 00:01:18 +01:00
Antoine Grondin da927e3edf add support for floating IPs 2015-09-25 11:54:42 -04:00
bryanl 32ac48f00c It's DigitalOcean 2015-09-18 09:10:59 -04:00
bryanl b4e33ee3ae Don't drop existing query keys
When adding options to a path, don't drop existing keys. This will enable image pagination when there is a type key to work. The bug was trying to addOptions to an existing path with query values. Previously if a path `/path?type=alpha` was passed, key `page=2` would be appeneded, but `type=alpha` would be dropped.
2015-05-29 15:10:21 -07:00
Raphael Simon c4ca5889d2 Add optional API request completion callback to client.
This makes it possible for consumers of the package to debug API calls made to the DO APIs.

Usage:

client.OnRequestCompleted(func(req *http.Request, resp *http.Response) {
	// ... e.g. use httputil.DumpRequest / httputil.DumpResponse
})
2015-05-02 10:29:09 -07:00
Andrew Starr-Bochicchio ccc93aa250 Add support for the /v2/account endpoint. 2015-04-06 13:09:21 -04:00
bryanl 4890776cfd don't chomp existing err on close 2015-03-22 14:12:09 -04:00
bryanl f1424cedf5 Add missing error checks
Adds missing error checks to godo. Ensures calls to Client.Do and json decoding are evaluated when neccessary.
2015-03-21 15:21:49 -04:00
bryanl 96accbf5e9 Update to current API spec
* Allow requesting pages in lists by number
* Add tooling to allow examination of page links if they exist
* Add domain management CRUD
2014-09-08 20:36:11 -04:00
bryanl 4b5588d885 Services are interfaces
* Converted services to interfaces to make testing with them
in downstream projects easier to do.
* Removed testify dependency.
2014-09-04 16:22:37 -04:00
Renamed from doapi.go (Browse further)