loopback-component-qiniu

0.0.2 • Public • Published

loopback-component-storage-qiniu [Beta]

Loopback Storage for QiNiu Implementation

Loopback的七牛存储实现

Usage

  ...
  "storage"{
    "name": "storage",
    "connector": "loopback-component-storage-qiniu",
    "accessKey": "YourAccessToken",
    "secretKey": "YourSecret",
    "bucket": "wcn2-dev",
    "domain": "domain"
  }

bucket and domain are optional, domain is optional for bucket.

if bucket is set, will use the specific bucket only, and will similuate forlder as suggest in Qiniu.

if bucket is not set will use buckets as folders.

domain is optional for specific bucket, if not domain will use the default domain name.


bucketdomain 都是可选配置项,其中domainbucket的从属性

如果设置了bucket,就会只使用指定的bucket进行存储,并按照七牛推荐方式模拟文件夹系统.

如果没有设置bucket, 会使用bucket作为文件夹存储

domain是指定bucket的可选属性,如果没有设置domain会使用默认的domain

TODO

  • Integration Test

Readme

Keywords

Package Sidebar

Install

npm i loopback-component-qiniu

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • ole3021