Icon Library - OpenStack Storage
this module is an implementation of the base storage provider.
it uses the openstack part of pkgcloud.
Installation
ovh-iconlib-provider-storage
is a peer dependency.
npm install --save ovh-iconlib-provider-storage ovh-iconlib-provider-storage-oss
Configuration
# config.yml ---connections: - name: test authUrl: ${OSS_AUTH_URL} # process.env.OSS_AUTH_URL username: ${OSS_USERNAME} # process.env.OSS_USERNAME password: ${OSS_PASSWORD} # process.env.OSS_PASSWORD region: ${OSS_REGION} # process.env.OSS_REGION container: ${OSS_CONTAINER} # process.env.OSS_CONTAINER storage: default: oss providers: - name: oss type: ovh-iconlib-provider-storage-oss connection: test
Usage
// default provider instance loaded according to the configurationconst storage = ;
// list 10 files from path/to/liststorage ;
// upload filelet stream = ...;storage ;
// remove filestorage ;
// download file (get a readable stream)let stream = storage;
License
See LICENSE
file