orchard/internal/controller/store
Nikolay Edigaryev c5e0d68a3d
API: introduce ability to watch a VM (#351)
* API: introduce ability to watch a VM

* Document ?watch=true for GET /vms/{name} in the OpenAPI specification

* WatchVM: ensure that goroutine is terminated on early return with error

* WatchVM: close channels on goroutine exit

* WatchVM: ensure that we wait for the goroutine after additional barriers

* WatchVM: ignore unexpected keys instead of throwing an error

* WatchVM: perform context-aware writes to a bounded channel

* WatchVM: don't forget to close errCh on goroutine exit too

* WatchVM: don't close readyCh in goroutine to avoid ambiguity

* WatchVM: filter out spurious KVs that signify VM deletion
2025-10-03 21:34:53 +04:00
..
badger API: introduce ability to watch a VM (#351) 2025-10-03 21:34:53 +04:00
errors.go Refactored working with a storage (#20) 2023-02-08 19:36:30 -05:00
store.go API: introduce ability to watch a VM (#351) 2025-10-03 21:34:53 +04:00
store_test.go API: introduce ability to watch a VM (#351) 2025-10-03 21:34:53 +04:00