We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
onStorageObjectArchive() onStorageObjectDelete() onStorageObjectFinalize() onStorageObjectMetadataUpdate()
These decorators specify that a function should handle events for uploading, updating, or deleting of files and folders in Cloud Storage..
bucket(bucketName: string)
This decorator specifies the name of the storage bucket.
import { func, bucket, onStorageObjectFinalize } from 'firefuncs'; export class StorageFunctions { @func() @bucket('bucket1') @onStorageObjectFinalize() public async logUploadedObjects(object) { console.log(`Object uploaded at filepath ${object.name}`); } }