node-ovh-storage
A simple Node.js library to connect to the Object Storage OVH service
Last updated 5 months ago by arnaud00 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-ovh-storage 
SYNC missed versions from official npm registry.

node-ovh-storage

A simple Node.js library to connect to the Object Storage OVH service

Install via npm

npm install node-ovh-storage --save

API Usage


var OVHStorage = require('node-ovh-storage');

var config = {
  username: 'username',
  password: 'password',
  authURL:  'https://auth.cloud.ovh.net/v3',
  tenantId: 'tenantId',
  region:   'GRA1'
};

var storage = new OVHStorage(config);
// init token
storage.getToken(function(err) {
  // create new container
  storage.createContainer('Storage-1', function() {
    // put file
    storage.putFile('./tmp/doc.pdf', '/Storage-1/doc.pdf', function(err, res) {
      // list files in container
      storage.getFiles('/Storage-1', function(err, files) {
        // done
      });
    });
  });
});

Current Tags

  • 0.2.0                                ...           latest (5 months ago)

11 Versions

  • 0.2.0                                ...           5 months ago
  • 0.1.9                                ...           a year ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |