0.1.1 • Published 11 years ago

glusterfs v0.1.1

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

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));
});