@axolo/egg-cos-sts

0.0.3 • Public • Published

egg-cos-sts

Tencent cloud COS STS SDK plugin for Egg.js.

Install

npm i @axolo/egg-cos-sts --save

Usage

// {app_root}/config/plugin.js
exports.cosSts = {
  enable: true,
  package: '@axolo/egg-cos-sts',
};

Configuration

// {app_root}/config/config.default.js
exports.cosSts = {
};

see config/config.default.js for more detail.

API

getCredential([ options ])

params type desc
options Object merge to plugin options
return Promise STS Credential

getPolicy(scope)

params type desc
scope Array statement array of COS STS
return Object COS STS policy like options

Questions & Suggestions

Please open an issue here.

License

MIT

TODO

  • Cache Adapter

Package Sidebar

Install

npm i @axolo/egg-cos-sts

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

6.88 kB

Total Files

7

Last publish

Collaborators

  • axolo