GitHub user adamwg opened a pull request:
https://github.com/apache/libcloud/pull/807
Implement block storage APIs for DigitalOcean
## Implement block storage APIs for DigitalOcean
### Description
DigitalOcean has a new block storage feature in beta. The API docs are
[available
here](https://developers.digitalocean.com/documentation/v2/block-storage-beta/).
This PR implements the block storage API calls in the DigitalOcean driver.
A few things to keep in mind at this point:
* Block storage is currently only available to users enrolled in the beta.
Block storage API calls will fail for other users.
* Block storage is not yet available in all DigitalOcean regions.
* DigitalOcean block storage does not support snapshots, so
snapshot-related APIs are still unimplemented.
### Status
Done, ready for review.
### Checklist (tick everything that applies)
- [x] [Code
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
(required, can be done after the PR checks)
- [x] Documentation
- [x] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ]
[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
(required for bigger changes)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/adamwg/libcloud do-storage
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/807.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #807
----
commit 173ad93526bfbeaa803676465b3e8d8e0c79328c
Author: Adam Wolfe Gordon <[email protected]>
Date: 2016-06-06T19:12:23Z
Implement list_volumes for DigitalOcean
commit 42eb80775399a8befb884b93e6c72b1358981bae
Author: Adam Wolfe Gordon <[email protected]>
Date: 2016-06-06T19:12:52Z
Implement {create,destroy}_volume for DigitalOcean
commit c2ee0d80a88a8b105b8c9eed4103239ca6d8d19c
Author: Adam Wolfe Gordon <[email protected]>
Date: 2016-06-06T19:13:07Z
Implement {attach,detach}_volume for DigitalOcean
commit cb982dafc113fc3ee5e9ee415cc4d9a64dfc2dd2
Author: Adam Wolfe Gordon <[email protected]>
Date: 2016-06-06T21:26:04Z
Add tests for storage-related operations on the DigitalOcean driver
commit b7b98fa142b8d95553a3a974ec4543275c55b549
Author: Adam Wolfe Gordon <[email protected]>
Date: 2016-06-06T22:44:18Z
Update docs to reflect that DigitalOcean has block storage
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---