0.1.1 • Published 11 years ago
glusterfs v0.1.1
GlusterFS-NodeJS
A NodeJS module / wrapper for GlusterFS CLI.
Install:
npm install glusterfs
Usage:
So there are 2 methods in the GlusterFS Object:
gluster.volume ( command , volume , callback, additionalOptions )
gluster.peer ( command, hostname, callback )
Here is an example script:
// Generated by CoffeeScript 1.5.0
var GlusterFS, gfs;
GlusterFS = require('glusterfs');
gfs = new GlusterFS;
gfs.peer('status', null, function(res) {
return console.log('Peer Status:', JSON.stringify(res));
});
gfs.volume('info', 'all', function(res) {
return console.log('Volume Info (All Volumes)', JSON.stringify(res));
});
0.1.1
11 years ago