0.0.31 • Published 5 months ago

@google-cloud-suite/cloud-functions-storage-upload v0.0.31

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

@google-cloud-suite/cloud-functions-storage-upload

Upload file to storage via functions

  1. Install
npm install @google-cloud-suite/cloud-functions-cloud-functions-storage-upload
  1. Handle stroage trigger

You can use handle(params?: InitParams) to initialize trigger. The followings are the property of InitParams:

  • bucketName: string
  • clientSecret?: string
    • defaults: undefined
  • keyPrefix?: string
    • defaults: undefined

Examples:

  • Using event target bucket for both source and destination.
const storageUpload = require("@google-cloud-suite/cloud-functions-storage-upload");
exports.upload = storageUpload.handle();
  1. Deploy
gcloud functions deploy upload \
--runtime nodejs14 \
--project YOUR_PROJECT
0.0.30

7 months ago

0.0.31

5 months ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago