Dong Chen
59a1f2427b
Close tcp connection when client stops '/events' request.
...
Signed-off-by: Dong Chen <dongluo.chen@docker.com>
2015-11-24 16:18:18 -08:00
Alexandre Beslic
62c5d4b47a
Merge pull request #1392 from MHBauer/issue1367
...
add newline to event json to match docker
2015-11-23 09:54:00 -08:00
Morgan Bauer
99846a0b85
add newline to event json to match docker
...
- docker server has a newline separating individual json entries
- create const string for format
- resolves #1367
Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
2015-11-15 14:14:02 -08:00
Victor Vieux
9ff2197596
fix event deletion under lock
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-11-14 19:35:15 +01:00
Morgan Bauer
b1d3b625de
implement `--until` flag for swarm api
...
- mostly copied the idea from base docker
- refactored the locking in event handling
- integration test for until flag
Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
2015-09-18 14:20:30 -07:00
Victor Vieux
4da6b2b093
Merge pull request #551 from noxiouz/fix_eventsHandler
...
[eventsHandler] Use Lock/Unlock to sync a write access
2015-05-13 17:58:52 -07:00
Andrea Luzzardi
442217d6dc
Cleanup events handler.
...
- Renamed Events() to RegisterEventHandler() in Engine.
- Added RegisterEventHandler() to the Cluster interface.
- Removed EventHandler requirement from swarm's Cluster constructor.
- Make API's events handler private.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-15 15:59:55 -07:00
Andrea Luzzardi
f5979b2fed
golint: eventsHandler -> EventsHandler.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-15 14:21:05 -07:00
Victor Vieux
1297a4cef2
transform node interface to engine struct
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-06 13:19:37 -07:00
Anton Tiurin
78f21a8e88
[eventsHandler] Use Lock/Unlock to sync a write access
...
Delete keys from internal maps in a lazy way.
The heavy Lock is acquired only when we have errors.
Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2015-04-02 06:31:53 +03:00
Peggy Li
6103a94350
Improve godocs for exported values in api pkg
...
Signed-off-by: Peggy Li <peggyli.224@gmail.com>
2015-03-30 21:32:08 -07:00
Matt Bajor
d87c48ae4e
Fix lint violations
...
This changeset fixes all lint violations that show up with a
min_confidence of 1
- Issue #500 : Run golint on codebase
Signed-off-by: Matt Bajor <matt@notevenremotelydorky.com>
2015-03-27 21:17:44 -06:00
Victor Vieux
0fca58b069
add Node back to inspect
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-03-06 16:40:55 -08:00
Victor Vieux
d8042f9677
add Node interface
...
Usable -> Total & Reserved -> Used
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:25:50 -08:00
Andrea Luzzardi
7effd27a0e
Events: Embed the entire Node object rather than its attributes.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-12-17 17:54:07 -08:00
Victor Vieux
f7fed9a7bd
add tests for events
2014-11-25 02:14:29 +00:00
Victor Vieux
f502698aed
add more infos to events
2014-11-21 22:37:43 +00:00
Victor Vieux
1f74cb5809
remove races
2014-11-21 01:36:30 +00:00
Victor Vieux
0f507fb783
fix package name
2014-11-18 21:40:38 +00:00
Victor Vieux
216c2a7507
fix imports
2014-11-18 02:52:51 +00:00
Victor Vieux
ed2db9a85b
swarmd -> swarm
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-11-18 00:57:05 +00:00
Victor Vieux
60a80c0c84
add EventsListeners in docker info
2014-11-15 00:16:50 +00:00
Victor Vieux
de6a1d9c1a
events
2014-11-15 00:05:55 +00:00