1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00
copilot/cloudapi-graphql/src/api/images.js
Tom Gallacher e71fc374bc triton-graphql -> Joyent cloudapi-graphql (#22)
This brings the name of the application inline with the terminology in
the Joyent triton / cloud api documentation.
2016-10-14 12:51:09 +01:00

26 lines
524 B
JavaScript

const request = require('./request');
module.exports.list = (ctx) => {
return request('listImages', ctx);
};
module.exports.get = (ctx) => {
return request('getImage', ctx);
};
module.exports.create = (ctx) => {
return request('createImageFromMachine', ctx);
};
// module.exports.update = (ctx) => {
// return request('UpdateImage', ctx);
// };
module.exports.destroy = (uuid) => {
return request('deleteImage', uuid);
};
// module.exports.xport = (uuid) => {
// return request('deleteImage', uuid);
// };