Skip to content
A NodeJS module / wrapper for GlusterFS CLI
CoffeeScript
Find file
Latest commit b804bcb Aug 14, 2015 @qrpike Merge pull request #1 from hacor/master
Updated module
Failed to load latest commit information.
node_modules
GlusterFS.coffee
GlusterFS.js
README.md
example.coffee
example.js
package.json

README.md

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));
});
Something went wrong with that request. Please try again.