1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
David Calavera 8d3467626e
Move middleware to interfaces.
This makes separating middlewares from the core api easier.
As an example, the authorization middleware is moved to
it's own package.

Initialize all static middlewares when the server is created, reducing
allocations every time a route is wrapper with the middlewares.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-04-11 09:19:27 -07:00
..
aaparser
archive pkg/archive: use more narrow interface for CompressStream 2016-04-07 13:21:05 -07:00
authorization Move middleware to interfaces. 2016-04-11 09:19:27 -07:00
broadcaster
chrootarchive
devicemapper
directory
discovery
filenotify
fileutils
gitutils
graphdb
homedir
httputils
idtools Lazy init useradd and remove init() 2016-04-06 17:53:45 -04:00
integration
ioutils Fix closing attach streams on lost tcp connection 2016-04-06 21:27:47 -07:00
jsonlog
jsonmessage
listeners pkg: listeners: clean up to act like a library 2016-04-02 01:09:29 +11:00
locker
longpath
loopback
mflag
mount
namesgenerator Fix spelling error in names-generator.go 2016-04-05 12:34:52 +02:00
parsers
pidfile
platform
plugins Fix panic in loading plugins 2016-03-23 15:34:15 -04:00
pools
progress
promise
proxy
pubsub
random
reexec
registrar
signal
stdcopy Optimizations for StdWriter 2016-03-25 22:14:27 -04:00
streamformatter
stringid
stringutils
symlink
sysinfo
system Add os_version and os_features to Image 2016-04-04 13:14:57 -07:00
tailfile
tarsum
term Windows: Remove TP4 support from main code 2016-04-06 12:12:20 -07:00
tlsconfig
truncindex
urlutil
useragent
version
README.md

pkg/ is a collection of utility packages used by the Docker project without being specific to its internals.

Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Docker organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!