1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/utils
Arnaud Porterie d0c4e44863 Refactor events publishing
Events subscription (/events API endpoint) attributes pseudo-unique identifiers to incoming subscribers: originally its host, then its subscription time. This is unecessary and leads to code complexity.

Introduce a JSONMessagePublisher to provide simple pub/sub mechanism for JSONMessage, and rely on this new type to publish events to all subscribed listeners. The original logic is kept for the 'since' and 'until' parameters, and for client disconnection handling.

Docker-DCO-1.1-Signed-off-by: Arnaud Porterie <icecrime@gmail.com> (github: icecrime)
2014-06-17 21:56:22 +02:00
..
filters filters: don't encode an empty set. update comments 2014-06-02 16:33:52 -04:00
testdata tarsum: adding the layer for "scratch" image 2014-05-13 15:08:48 -04:00
checksum.go registry: Added simple checksums (sha256) for layers 2014-02-23 18:50:04 -08:00
daemon.go go fmt 2013-11-07 12:27:33 -08:00
http.go Remove Trailing Whitespace in User-Agent 2014-05-16 17:15:04 -07:00
jsonmessage.go Move duration and size to units pkg 2014-05-12 17:05:07 -07:00
jsonmessage_test.go Handle small screens 2013-12-03 14:21:33 -08:00
jsonmessagepublisher.go Refactor events publishing 2014-06-17 21:56:22 +02:00
jsonmessagepublisher_test.go Refactor events publishing 2014-06-17 21:56:22 +02:00
progressreader.go fix progressbar in docker push 2013-12-20 16:55:41 -08:00
random.go Fixed up if statement 2014-06-10 10:02:00 -04:00
resumablerequestreader.go resume pulling the layer on disconnect 2014-06-02 21:41:22 +03:00
stdcopy.go Fix expending buffer in StdCopy 2014-03-31 10:54:06 -07:00
streamformatter.go Remove unused and racy "used" param from streamformatter 2014-06-02 21:43:07 +04:00
streamformatter_test.go Remove unused and racy "used" param from streamformatter 2014-06-02 21:43:07 +04:00
tarsum.go Use a more defensive vendored archive/tar import path to make it clear this isn't upstream's released archive/tar 2014-02-27 09:43:44 -07:00
tarsum_test.go tarsum: adding benchmarks 2014-05-14 11:48:17 -04:00
timeoutconn.go Use Timeout Conn wrapper to set read deadline for downloading layer 2014-05-27 22:50:04 -07:00
uname_linux.go Update/fix build tags, Dockerfile, and release.sh for proper building and releasing of linux/386 and linux/arm cross-compiled client binaries 2014-01-31 03:16:42 -07:00
uname_unsupported.go Update/fix build tags, Dockerfile, and release.sh for proper building and releasing of linux/386 and linux/arm cross-compiled client binaries 2014-01-31 03:16:42 -07:00
utils.go improve numeric only id detection 2014-05-27 21:03:12 +00:00
utils_test.go IANA allocated Docker port: 2375 2014-06-04 06:54:19 +10:00