Skip to content
🚀 Node.js client binding for cloudpipe
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
README.md
package.json

README.md

Getting Started: Basic Usage

WARNING: The Node.js API for CloudPipe and its implementation are in alpha.

var cloudpipe = require('cloudpipe');

// Initialize cloudpipe
var pipe = cloudpipe.init({
  url: 'http://192.168.59.103:8000/api/v1',
  username: 'admin',
  apiKey: '12345'
});

// Define the function you want to run in ze cloud
var add = function(x, y, callback) {
  callback(null, x + y);
};

// Cloudpipe your function
var cloudAdd = pipe.createFunction(add);

// Call your cloudpipe'd function
cloudAdd(2, 4, function(err, result) {
  // err == null
  // result == 6
});

Restrictions

  • No globals (free variables)
  • No dependencies (yet!)

TODO

  • Process job creation request results
  • Logging

Testing

See the Usage section in the cloudpipe/runner-node repo.

You can’t perform that action at this time.