cloud-shepherd
Version:
An NPM module that abstracts away the complexities of cloud storage services (Object Storage (AWS s3) as well as File Storage(Dropbox) to easily interface between multiple clouds with a unified interface. Also enables you to quickly perform data migration
20 lines (13 loc) • 400 B
JavaScript
const PkgCloudHerd = require('./PkgCloudHerd.js');
class OpenstackHerd extends PkgCloudHerd {
constructor(credentials) {
super(credentials);
this.cloud = require('pkgcloud').storage.createClient({
provider: 'openstack',
username: credentials.username,
password: credentials.password,
authUrl: credentials.authUrl,
});
}
}
module.exports = OpenstackHerd;