Listening for snappy events on snapd interface
Robert Ancell
robert.ancell at gmail.com
Tue Feb 2 23:22:43 UTC 2016
Hi,
The snapd interface currently allows an application to poll for the state
of the snaps on a system either by getting the list of installed snaps or
polling for the result of an async operation (e.g. install / remove).
It would be desirable to be able to subscribe to an event stream on the
snapd interface so you could track all changes without polling. This would
make:
- Code more efficient by removing the need to poll your own async operations
- A snapd client able to know when a separate client has installed /
removed / changed state of a snap.
For example if you do the folowing request to snapd:
GET /2.0/events
(snapd blocks)
(a client installs hello-world.canonical)
(snapd returns)
{"snaps":{"hello-world.canonical":{"status":"installed"}}
Does this feature make sense for snapd?
--Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-devel/attachments/20160202/645c2349/attachment.html>
More information about the snappy-devel
mailing list