gcp-storage-emulator icon indicating copy to clipboard operation
gcp-storage-emulator copied to clipboard

Adding bucket notifications feature

Open RodrigoFerretti opened this issue 2 years ago • 2 comments

Description

Notifications can be used to send information about changes to objects in your buckets to Pub/Sub.

Proposal

Integration with Pub/Sub will happen either with emulator APIs or GCP. Information about Pub/Sub emulator can be found here.

To emulate the official Google Cloud bucket notification, the new routes will:

  • insert new bucket notification
  • delete bucket notification
  • get bucket notification
  • getbyid bucket notification

Existing route of upload will:

  • send notification to Pub/Sub topic whenever a object is inserted into a bucket

This is still a draft and there is a lot of study to do!

Official information about Pub/Sub notification for Cloud Storage can be found here.

RodrigoFerretti avatar May 11 '22 02:05 RodrigoFerretti

Any chance this is happening? It would be a very useful addition.

jon-acker avatar Mar 21 '23 15:03 jon-acker

Any chance this is happening? It would be a very useful addition.

Hi! Got busy at work and forgot about this, my bad. I will take a look to see what it needs for this pull request to be ready for review. If I am not mistaken, there are only some test methods to be done. It also needs documentation about the process of using it with the emulator. Hopefully is done by next week. :)

RodrigoFerretti avatar Mar 25 '23 04:03 RodrigoFerretti