rancher / convoy

A Docker volume plugin, managing persistent container volumes.
Apache License 2.0
1.31k stars 135 forks source link

Managing convoy command through REST API #176

Closed zepouet closed 7 years ago

zepouet commented 7 years ago

Hello,

Is it possible to execute snapshot/backup/restore via REST API ? Would you be interested by a PR about this feature ?

Thanks a lot Best regards

peebles commented 7 years ago

I do not represent anyone associated with convoy, but ...

This "feature" already exists. You can access the complete convoy REST api by sending requests to the /var/run/convoy/convoy.sock socket. I have created a "node-convoy" project, a library you can use in NodeJS scripts for managing convoy using the API. Even if you don't use NodeJS, you could look at the source code to see how it works.

See: https://github.com/peebles/node-convoy

yasker commented 7 years ago

@peebles is right, all the API already exists through the local socket.