gcp-storage-emulator
gcp-storage-emulator copied to clipboard
Adding bucket notifications feature
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.
Any chance this is happening? It would be a very useful addition.
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. :)