Guus van Weelden
9e24e26f6b
use http.MethodX instead of "GET"/"POST"/"DELETE"
2017-07-02 13:55:56 +02:00
Marko Mudrinić
4b0ca2dac1
droplet_actions: return array of actions instead of action tagged resources
2017-04-29 23:08:00 +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
Term1nal
b814e84f48
make linters happy
2016-12-20 16:00:17 -08:00
Phillip Baker
32a0d37dd3
Object roots should use a pointer to be consistent.
2016-11-18 16:27:27 -05:00
Nan Zhong
1eaf6161c0
Update droplet and actions endpoints with tagging support
2016-03-17 01:45:16 -04:00
Mike Holly
05bc1ae125
Added EnableBackups plus tests
2015-11-05 16:02:24 -08: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
bryanl
df64c561b0
Remove unexported item from interface
...
Removing unexported `doAction` from DropletActionsService interface because it makes DropletActionsService impossible to mock.
2015-06-02 07:26:53 -04:00
bryanl
de59235b17
updating documentation for godo
2015-06-01 13:34:27 -04:00
Raphael Simon
acbcf2a70a
Add missing droplet actions.
...
This includes the following DropletActions service methods:
DisableBackups, PasswordReset, RebuildByImageID(), RebuildByImageSlug(), ChangeKernel(), EnableIPv6(), EnablePrivateNetworking() and Upgrade().
2015-04-21 13:16:35 -07: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
Phill Baker
66c450f777
Merge pull request #27 from digitalocean/feature/resize-disk
...
Add boolean disk option to Resize droplet action.
2015-03-09 10:19:28 -04:00
Phillip Baker
1323a431a4
Update doc links for v2 documentation.
2015-03-07 15:47:46 -05:00
Phillip Baker
68fe5fa87e
Add boolean disk option to Resize droplet action.
2015-03-07 15:09:54 -05:00
Andrew Starr-Bochicchio
91ca99d4a8
Add support for DropletActions.Snapshot.
2015-02-19 21:22:03 -05:00
Cheah Chu Yeow
c83a4b9973
Flatten droplet actions params to match the current API spec.
...
E.g.
{
"type": "resize",
"size": "1gb"
}
instead of
{
"type": "resize",
"params": {
"size": "1gb"
}
}
2014-11-12 09:06:15 +00:00
Daniel, Dao Quang Minh
c2a4a75927
add support for PowerOn
...
as specified in https://developers.digitalocean.com/v2/#power-on-a-droplet
2014-09-18 03:42:59 -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