I have a local install of OpenWhisk (vagrant based), and a local install of Cloudant (the free one from the ibmcom/cloudant-developer
container).
Both work separately as expected.
Now, using Bluemix, I can use the /whisk.system/cloudant
package to use its feeds in my triggers, to for example watch for changes on a specific database.
Locally, this package is missing. I tried to copy the actions and feeds I needed using wsk action get /whisk.system/cloudant/changes
(for example) but it seems there's another missing piece of the puzzle as the feed action refers to a cloudanttriggers location I never saw before:
function cloudantHelper(endpoint, verb, name, input) {
var url = 'http://' + endpoint + '/cloudanttriggers/' + name;
var promise = new Promise(function(resolve, reject) {
request({
method : verb,
url : url,
json: input
}, function(error, response, body) {
...
});
});
return promise;
}
Any idea how to implement Cloudant Change feed on a local openwhisk installation?