mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[PR #2157] Add runtime per-bucket pub/sub notification configuration API #2147
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#2147
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/2157
Author: @drehelis
Created: 2/27/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (3)
8fe2275add runtime per-bucket pub/sub notification configuration API5492c62chore: lint fixb7055abchore(fix) goroutine leak, close all clients on stop and some nitpicks📊 Changes
8 files changed (+588 additions, -22 deletions)
View changed files
📝
fakestorage/bucket.go(+1 -0)➕
fakestorage/notification.go(+65 -0)➕
fakestorage/notification_test.go(+145 -0)📝
fakestorage/object.go(+9 -0)📝
fakestorage/server.go(+22 -15)📝
internal/notification/event.go(+13 -7)➕
internal/notification/registry.go(+203 -0)➕
internal/notification/registry_test.go(+130 -0)📄 Description
Following https://github.com/fsouza/fake-gcs-server/issues/2131,
I was thinking that maybe runtime configuration is a better approach to add support for multiple pub/sub notification configurations. Extending proposed solution also to per-bucket notification.
How this works:
Result:

Supported events are:
OBJECT_FINALIZE,OBJECT_DELETE,OBJECT_METADATA_UPDATE,OBJECT_ARCHIVEFull disclosure:
I'm the author of gcp-emulator-ui which is also a
fake-gcsUI interface and a runtime configuration is better suited then the proposed init config in https://github.com/fsouza/fake-gcs-server/pull/2135🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.