Commit Graph

190 Commits

Author SHA1 Message Date
Andrew Starr-Bochicchio 65af7278c0 Update README with context.Context usage. (#127)
* Update README with context.Context usage.

* s/Background/TODO/
2017-02-23 20:41:35 -05:00
Antoine Grondin 342aee365e Merge pull request #113 from digitalocean/use-context
add context.Context to all calls
2017-02-23 14:36:40 -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
Dan Norris 1b60bc0c6d Merge pull request #122 from protochron/add_volume_by_name
Add GetVolumeByName to Storage
2017-02-17 08:18:12 -08:00
Dan Norris 595953f5ab Add ability to query for a storage volume by name
This allows you to get a volume by name and region which corresponds to
calling:

```
/v2/volumes?name=$NAME&region=$REGION
```
2017-02-16 23:44:22 -08:00
Wioletta Holownia 767976000c Merge pull request #125 from digitalocean/add-load-balancers
Add support for LoadBalancers
2017-02-14 15:43:37 -05:00
Viola Holownia c99e714f33 Add support for LoadBalancers 2017-02-14 15:36:18 -05:00
Maurício Linhares 0d31061e91 Merge pull request #123 from xmudrii/improving-services
Improving Droplet services
2017-02-13 14:33:40 -05:00
Marko Mudrinic 792d5cee77 Added missing fields in Droplet struct 2017-02-13 14:04:32 +01:00
Antoine Grondin dfde623214 Merge pull request #120 from eguevara/add-setbaseurl-tests
adding tests for godo.SetBaseURL()
2017-01-12 01:34:17 -06:00
Erick Guevara a7b77d4c06 adding tests for godo.SetBaseURL() to check BaseURL field and handle parse url errors 2017-01-12 00:50:14 -06:00
Maurício Linhares 3ab73e7c31 Merge pull request #119 from term1nal/refactor/make-linters-happy
make linters happy
2016-12-22 14:56:20 -03:00
Term1nal 728210a15c Delete deadcode instead of comment it. 2016-12-22 09:19:55 -08:00
Carlos Villela 7c9bf15691 Adds support for creating droplets with monitoring (#117) 2016-12-21 23:05:53 -05:00
Term1nal e9a24bffd6 Missed one! 2016-12-20 17:04:02 -08:00
Term1nal b814e84f48 make linters happy 2016-12-20 16:00:17 -08:00
Phillip Baker 758b5be38e Merge pull request #114 from digitalocean/update/storage-beta
Remove betastorageservice, in production.
2016-12-03 17:00:15 -05:00
Phillip Baker 8fdd58bf1e Remove betastorageservice, in production. 2016-12-03 16:54:52 -05:00
Andrew Starr-Bochicchio c9f63401f5 Merge pull request #115 from digitalocean/asb/bugfix/snapshot-size-type
SizeGigaBytes is an floating-point number.
2016-11-30 11:17:22 -05:00
Andrew Starr-Bochicchio 7242cded33 SizeGigaBytes is an floating-point number. 2016-11-30 10:26:58 -05:00
Phillip Baker bec8984b6b Merge pull request #108 from digitalocean/feature/snapshots
Add snapshots endpoints.
2016-11-29 22:58:31 -05:00
Phillip Baker 5c91372eb4 Merge pull request #111 from digitalocean/bugfix/image-root
Object roots should use a pointer to be consistent.
2016-11-22 20:52:38 -05:00
Phillip Baker 32a0d37dd3 Object roots should use a pointer to be consistent. 2016-11-18 16:27:27 -05:00
Phillip Baker e715166fe5 Add snapshots endpoints, unify code with storage snapshots. 2016-11-18 11:26:43 -05:00
Antoine Grondin c3a2aad75d Merge pull request #110 from secant/volume-fix
Fix droplet JSON to support VolumeIDs
2016-11-16 01:58:50 -05:00
Antoine Grondin 48aa6fe548 Merge pull request #106 from wardviaene/DetachByDropletID
Adds DetachByDropletID
2016-11-16 01:39:46 -05:00
Vivian Fang 8d4c97f7f2 Fix JSON typo in Droplet 2016-11-14 23:33:25 -08:00
Vivian Fang d9494d316f Fix droplet JSON to support VolumeIDs
Before this patch, the Droplet struct had the wrong JSON key for
VolumeIDs, so volumes would not be reflected in a Droplet query.
2016-11-14 23:30:41 -08:00
Michael Chittenden a2c1274e95 Merge pull request #107 from digitalocean/feature/droplet-create-tags
Add Tags attribute to droplet create
2016-11-11 12:24:20 -05:00
Mike Chittenden 82ae4350ef Add Tags attribute to droplet create 2016-11-09 10:57:33 -05:00
Edward Viaene 950397c9c1 Adds DetachByDropletID 2016-11-07 16:55:44 +00:00
Bryan Liles 2ff8a02a86 Merge pull request #104 from chaseadamsio/cleanup-createImageMarshalJSON
organizes dropletCreateImage MarshalJSON declaration
2016-09-09 13:14:55 -04:00
Chase Adams eaefd48803 organizes dropletCreateImage MarshalJSON declaration 2016-09-09 09:56:11 -07:00
Bryan Liles 9ce324a2b8 Merge pull request #94 from shawnps/master
gofmt -s
2016-09-09 10:20:35 -04:00
Bryan Liles 27d2cca254 Merge pull request #93 from shawnps/patch-1
use Errorf
2016-07-17 21:30:36 -04:00
Andrew Starr-Bochicchio 25f12cd684 Merge pull request #101 from digitalocean/asb/feature/resize
Add support for resizing volumes.
2016-07-17 15:31:04 -04:00
Andrew Starr-Bochicchio f2d61272c8 Add List and Get for StorageActions for consistency with other resources. 2016-07-16 22:19:46 -04:00
Andrew Starr-Bochicchio 33bae1f789 Add support for resizing volumes. 2016-07-16 21:40:32 -04:00
Antoine Grondin e03ac28c3d Merge pull request #89 from digitalocean/beta-storage-blockstore
storage: support for beta storage API
2016-06-27 15:55:12 -04: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
Bryan Liles 1d54c91f87 Merge pull request #98 from tbalthazar/issue-97
Make sure godo.New() init the different services
2016-06-14 11:20:45 -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
Antoine Grondin df6258cbd3 Merge pull request #96 from digitalocean/fix-go1-7
remove JSON invalid encoding test
2016-06-09 17:08:31 -04:00
Antoine Grondin 8897364455 remove JSON invalid encoding test
> Go 1.7 adds support for maps using keys with integer types: the
> encoding uses a quoted decimal representation as the JSON key.

in: https://tip.golang.org/doc/go1.7, under encoding/json
2016-06-09 16:38:35 -04:00
Shawn Smith b7d45eeceb gofmt -s 2016-05-13 01:38:34 +09:00
Shawn Smith 0111175c7b use Errorf 2016-05-13 01:34:11 +09:00
Bryan Liles 1124654416 Merge pull request #92 from digitalocean/options-initializer
create functional option based initializer for Client
2016-04-25 15:38:15 -04:00