Commit Graph

18 Commits

Author SHA1 Message Date
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
bryanl 5d38c50b0a Add size slug to droplet
Adds missing size slug to droplets. This should take care of the
issue raised in #21.
2015-05-11 14:26:52 -04:00
masayuki_oguni 90449108b5 Added transfer to size
Added Available to size
2015-05-03 21:11:41 +09:00
Antoine Grondin 43bfe8800f Merge pull request #42 from rightscale/feature/complete_images
Add missing APIs to Images service.
2015-04-22 22:51:38 -04:00
Raphael Simon fc8ecd5bc6 Add missing APIs to Images service.
The following were added:

* Images.ListDistribution() for GET /v2/images?type=distribution
* Images.ListApplication() for GET /v2/images?type=application
* Images.ListUser() for GET /v2/images?private=true
* Images.GetByID() for GET /v2/images/12345
* Images.GetBySlug() for GET /v2/images/ubuntu
* Images.Update() for PUT /v2/images/12345
* Images.Delete() for DELETE /v2/images/12345
2015-04-22 17:55:01 -07:00
Raphael Simon 2a6cda7911 Rename Droplets.ListKernels() and co. to Droplets.Kernels()
so that the naming convention is consistent with the Images service where "ListFoo()" means "list images of type foo" rather than "list foos of the image".
2015-04-20 18:32:49 -07:00
Raphael Simon df0702b9e2 Add Droplet service Listing requests.
Includes ListKernels, ListSnapshots, ListBackups, ListActions and ListNeighbors corresponding to
the GET "/v2/droplets/:id/kernels" etc. APIs.
2015-04-20 15:27:41 -07:00
Bryce Reitano 107613d25b Omit an empty value for user data to serialize properly. 2015-04-12 18:44:47 -06:00
Bryan Liles 4a70bc6049 Merge pull request #33 from digitalocean/remove-implements-check
Remove testing Implements
2015-03-23 07:37:21 -04: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
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
Phillip Baker f1ccbcd46f Add image/ssh key structs for explicit type on droplet create.
Closes #22
2015-03-21 14:52:14 -04:00
Nick Saika 483a68e37a New struct NetworkV6, rename struct Network -> NetworkV4.
This is due to there being a different in the type of the Netmask value,
when it is returned from the API server. For IPv4 networks, the netmask
is returned as a string. However, the netmask is returned as an int for
IPv6 networks.

Add tests for the new NetworkV6 type.
2015-02-20 14:14:47 -05:00
bryanl 2dd88c1ec3 updating expected test output 2015-01-23 09:20:22 -05:00
bryanl 09b1d317c4 Links aren't added to droplet create response
Links returned by the API were not added to the Droplet create response, so you couldn't inspect the URL to determine when a Droplet was created.
2014-09-10 17:28:44 -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
bryanl b4bec8f557 initial commit 2014-09-03 10:20:10 -04:00