machinepack-digitalocean
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -60,2 +60,2 @@ module.exports = { | ||
}; | ||
}; |
@@ -34,6 +34,23 @@ module.exports = { | ||
success: { | ||
description: 'An unexpected error occurred.', | ||
statuscode: '200', | ||
response: 'Response from API v2' | ||
example: { | ||
"backups": [ | ||
{ | ||
"id": 7622989, | ||
"name": "example.com 2014-11-14", | ||
"distribution": "Ubuntu", | ||
"slug": null, | ||
"public": false, | ||
"regions": [ | ||
"nyc3" | ||
], | ||
"created_at": "2014-11-14T16:07:38Z", | ||
"type": "snapshot", | ||
"min_disk_size": 20 | ||
} | ||
], | ||
"meta": { | ||
"total": 1 | ||
} | ||
} | ||
} | ||
}, | ||
@@ -40,0 +57,0 @@ |
@@ -34,7 +34,27 @@ module.exports = { | ||
success: { | ||
description: 'An unexpected error occurred.', | ||
statuscode: '200', | ||
response: 'Response from API v2' | ||
example: { | ||
"snapshots": [ | ||
{ | ||
"id": 7938206, | ||
"name": "nginx-fresh", | ||
"distribution": "Ubuntu", | ||
"slug": null, | ||
"public": false, | ||
"regions": [ | ||
"nyc3", | ||
"nyc3" | ||
], | ||
"created_at": "2014-11-14T16:37:34Z", | ||
"type": "snapshot", | ||
"min_disk_size": 20 | ||
} | ||
], | ||
"links": { | ||
}, | ||
"meta": { | ||
"total": 1 | ||
} | ||
} | ||
} | ||
}, | ||
@@ -41,0 +61,0 @@ fn: function (inputs, exits) { |
@@ -34,6 +34,96 @@ module.exports = { | ||
success: { | ||
description: 'An unexpected error occurred.', | ||
statuscode: '200', | ||
response: 'Response from API v2' | ||
example: { | ||
"droplet": { | ||
"id": 3164494, | ||
"name": "example.com", | ||
"memory": 512, | ||
"vcpus": 1, | ||
"disk": 20, | ||
"locked": false, | ||
"status": "active", | ||
"kernel": { | ||
"id": 2233, | ||
"name": "Ubuntu 14.04 x64 vmlinuz-3.13.0-37-generic", | ||
"version": "3.13.0-37-generic" | ||
}, | ||
"created_at": "2014-11-14T16:36:31Z", | ||
"features": [ | ||
"ipv6", | ||
"virtio" | ||
], | ||
"backup_ids": [ | ||
], | ||
"snapshot_ids": [ | ||
7938206 | ||
], | ||
"image": { | ||
"id": 6918990, | ||
"name": "14.04 x64", | ||
"distribution": "Ubuntu", | ||
"slug": "ubuntu-14-04-x64", | ||
"public": true, | ||
"regions": [ | ||
"nyc1", | ||
"ams1", | ||
"sfo1", | ||
"nyc2", | ||
"ams2", | ||
"sgp1", | ||
"lon1", | ||
"nyc3", | ||
"ams3", | ||
"nyc3" | ||
], | ||
"created_at": "2014-10-17T20:24:33Z", | ||
"type": "snapshot", | ||
"min_disk_size": 20 | ||
}, | ||
"size": { | ||
}, | ||
"size_slug": "512mb", | ||
"networks": { | ||
"v4": [ | ||
{ | ||
"ip_address": "104.131.186.241", | ||
"netmask": "255.255.240.0", | ||
"gateway": "104.131.176.1", | ||
"type": "public" | ||
} | ||
], | ||
"v6": [ | ||
{ | ||
"ip_address": "2604:A880:0800:0010:0000:0000:031D:2001", | ||
"netmask": 64, | ||
"gateway": "2604:A880:0800:0010:0000:0000:0000:0001", | ||
"type": "public" | ||
} | ||
] | ||
}, | ||
"region": { | ||
"name": "New York 3", | ||
"slug": "nyc3", | ||
"sizes": [ | ||
"32gb", | ||
"16gb", | ||
"2gb", | ||
"1gb", | ||
"4gb", | ||
"8gb", | ||
"512mb", | ||
"64gb", | ||
"48gb" | ||
], | ||
"features": [ | ||
"virtio", | ||
"private_networking", | ||
"backups", | ||
"ipv6", | ||
"metadata" | ||
], | ||
"available": true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
@@ -40,0 +130,0 @@ |
@@ -25,7 +25,101 @@ module.exports = { | ||
success: { | ||
description: 'An unexpected error occurred.', | ||
statuscode: '302', | ||
response: 'Response from API v2' | ||
example: { | ||
"droplets": [ | ||
{ | ||
"id": 3164444, | ||
"name": "example.com", | ||
"memory": 512, | ||
"vcpus": 1, | ||
"disk": 20, | ||
"locked": false, | ||
"status": "active", | ||
"kernel": { | ||
"id": 2233, | ||
"name": "Ubuntu 14.04 x64 vmlinuz-3.13.0-37-generic", | ||
"version": "3.13.0-37-generic" | ||
}, | ||
"created_at": "2014-11-14T16:29:21Z", | ||
"features": [ | ||
"backups", | ||
"ipv6", | ||
"virtio" | ||
], | ||
"backup_ids": [ | ||
7938002 | ||
], | ||
"snapshot_ids": [ | ||
], | ||
"image": { | ||
"id": 6918990, | ||
"name": "14.04 x64", | ||
"distribution": "Ubuntu", | ||
"slug": "ubuntu-14-04-x64", | ||
"public": true, | ||
"regions": [ | ||
"nyc1", | ||
"ams1", | ||
"sfo1", | ||
"nyc2", | ||
"ams2", | ||
"sgp1", | ||
"lon1", | ||
"nyc3", | ||
"ams3", | ||
"nyc3" | ||
], | ||
"created_at": "2014-10-17T20:24:33Z", | ||
"type": "snapshot", | ||
"min_disk_size": 20 | ||
}, | ||
"size": { | ||
}, | ||
"size_slug": "512mb", | ||
"networks": { | ||
"v4": [ | ||
{ | ||
"ip_address": "104.236.32.182", | ||
"netmask": "255.255.192.0", | ||
"gateway": "104.236.0.1", | ||
"type": "public" | ||
} | ||
], | ||
"v6": [ | ||
{ | ||
"ip_address": "2604:A880:0800:0010:0000:0000:02DD:4001", | ||
"netmask": 64, | ||
"gateway": "2604:A880:0800:0010:0000:0000:0000:0001", | ||
"type": "public" | ||
} | ||
] | ||
}, | ||
"region": { | ||
"name": "New York 3", | ||
"slug": "nyc3", | ||
"sizes": [ | ||
], | ||
"features": [ | ||
"virtio", | ||
"private_networking", | ||
"backups", | ||
"ipv6", | ||
"metadata" | ||
], | ||
"available": null | ||
} | ||
} | ||
], | ||
"links": { | ||
"pages": { | ||
"last": "https://api.digitalocean.com/v2/droplets?page=3&per_page=1", | ||
"next": "https://api.digitalocean.com/v2/droplets?page=2&per_page=1" | ||
} | ||
}, | ||
"meta": { | ||
"total": 3 | ||
} | ||
} | ||
} | ||
}, | ||
@@ -32,0 +126,0 @@ fn: function (inputs, exits) { |
{ | ||
"name": "machinepack-digitalocean", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Communicate with the DigitalOcean API to create, destroy, list and work with droplets.", | ||
@@ -28,3 +28,3 @@ "scripts": { | ||
"friendlyName": "Digital Ocean", | ||
"imageSrc": "http://nilefrater.co.uk/css/images/rsz_do_ssd_power_badge_blue-077bf22e.png", | ||
"iconSrc": "http://nilefrater.co.uk/css/images/rsz_do_ssd_power_badge_blue-077bf22e.png", | ||
"machineDir": "machines/", | ||
@@ -31,0 +31,0 @@ "machines": [ |
22080
645