jsreport-gcp-storage

1.0.0 • Public • Published

jsreport-gcp-storage

jsreport extension adding support for storing blobs in Google Cloud Storage

Similar to https://github.com/jsreport/jsreport-aws-s3-storage, a blob storage supporting Google Cloud Storage for saving binary output from jsreport.

See the blob storages general documentation https://jsreport.net/learn/blob-storages

See how to persist jsreport output reports https://jsreport.net/learn/reports

Installation

npm install jsreport-gcp-storage

Configuration

Required options:

  • bucket

Note: Authentication and authorization are pulled from your configured state via gcloud sdk per GCP norms.

Sample jsreport.config.json

{
  "blobStorage": {
    "provider": "gcp-storage"
  },
  "extensions": {
    "gcp-storage": {
      "bucket": "weave-analytics-huddle"
    }
  }
}

jsreport-core

var jsreport = require('jsreport-core')({ blobStorage: { provider: 'gcp-storage' } })
jsreport.use(require('jsreport-gcp-storage')({...}))

Readme

Keywords

Package Sidebar

Install

npm i jsreport-gcp-storage

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

5.5 kB

Total Files

8

Last publish

Collaborators

  • kacecode