grafana/pkg/plugins/backendplugin/secretsmanagerplugin
Dan Cech 7b4925ea37
Storage: Watch support (#82282)
* initial naive implementation

* Update pkg/services/store/entity/sqlstash/sql_storage_server.go

Co-authored-by: Igor Suleymanov <radiohead@users.noreply.github.com>

* tidy up

* add action column, batch watch events

* initial implementation of broadcast-based watcher

* fix up watch init

* remove batching, it just adds needless complexity

* use StreamWatcher

* make broadcaster generic

* add circular buffer to replay recent events to new watchers

* loop within poll until all events are read

* add index on entity_history.resource_version to support poller

* increment r.Since when we send events to consumer

* switch broadcaster and cache to use channels instead of mutexes

* cleanup

---------

Co-authored-by: Igor Suleymanov <radiohead@users.noreply.github.com>
2024-03-05 10:14:38 -05:00
..
generate.sh Chore: Replace entity GRN with infra/grn GRN (#74198) 2023-08-31 15:43:35 -04:00
secretsmanager_grcp_plugin.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
secretsmanager_grpc.pb.go Storage: Watch support (#82282) 2024-03-05 10:14:38 -05:00
secretsmanager.pb.go Storage: Watch support (#82282) 2024-03-05 10:14:38 -05:00
secretsmanager.proto Secrets: Add fallback to secrets kvstore plugin (#54056) 2022-08-23 12:21:54 -03:00