Commit Graph

21 Commits

Author SHA1 Message Date
Mike Chittenden 0f1b9ca783 add projects support 2018-10-16 17:29:54 +00:00
Tilen Faganel e419d0b7a8
Allow creating domain records with a weight of 0. 2018-08-26 22:13:34 +01:00
Andrew Starr-Bochicchio 5fe4b14a76 Allow creating domains without an IP address. 2018-06-28 16:29:53 -04:00
Maurício Linhares a3505618b6
Merge pull request #164 from digitalocean/APICLI-16/priority
Allow creating domain records with a priority of 0.
2018-06-06 15:37:30 -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
Andrew Starr-Bochicchio 491ebce9c6 Allow creating domain records with a priority of 0. 2018-04-26 17:17:24 -04:00
Nikolai Zujev 6d1b7bd535
Handle flags & tag properties of domain record
CAA domain record requires both there properties to be passed.
Validation in delegated to the API itself.
2017-10-04 20:19:35 +02:00
Guus van Weelden 9e24e26f6b use http.MethodX instead of "GET"/"POST"/"DELETE" 2017-07-02 13:55:56 +02:00
Marko Mudrinić b7a390c079
Add TTL property to Domains 2017-04-25 22:28:07 +02: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
Antoine Grondin dc14e4b04d add context.Context to all calls 2017-02-23 14:25:29 -05:00
bryanl af5057f05f Add checks for arguments
Adds checks to determine if the request will actually be valid by prefiltering invalid defaults (less than 0, empty strings, nils). The goal of this change is eliminate unnecceary API calls.
2015-09-25 14:44:20 -05:00
bryanl 32ac48f00c It's DigitalOcean 2015-09-18 09:10:59 -04:00
masayuki_oguni e5e4a6d533 Remove fmt.Printf from domains.go 2015-06-02 07:58:10 +09:00
Phillip Baker 1df42b98f6 Standardize on returning objects, not the json roots.
Let's be nice to our consumers - they don't care about the root, they care about the object. Even when the user needs access to the Links, that's accessible via the resp variable returned.
2015-06-01 10:47:19 -04:00
Bruno Clermont 4d71c27dae Fix doc for Delete 2015-05-28 12:17:17 +08:00
bryanl 14a4b3f281 Remove testing Implements
Make adherenence to interface a compile type rather than a test time check.
2015-03-21 15:42:48 -04:00
Phillip Baker 1323a431a4 Update doc links for v2 documentation. 2015-03-07 15:47:46 -05: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
bryanl b4bec8f557 initial commit 2014-09-03 10:20:10 -04:00