1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
Aleksa Sarai cfd39e8d6d
devicemapper: change LogInit and move all callbacks to pkg
LogInit used to act as a manual way of registering the *necessary*
pkg/devicemapper logging callbacks. In addition, it was used to split up
the logic of pkg/devicemapper into daemon/graphdriver/devmapper (such
that some things were logged from libdm).

The manual aspect of this API was completely non-sensical and was just
begging for incorrect usage of pkg/devicemapper, so remove that semantic
and always register our own libdm callbacks.

In addition, recombine the split out logging callbacks into
pkg/devicemapper so that the default logger is local to the library and
also shown to be the recommended logger. This makes the code
substantially easier to read. Also the new DefaultLogger now has
configurable upper-bound for the log level, which allows for dynamically
changing the logging level.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
2017-07-04 02:04:26 +10:00
..
aaparser apparmor: make pkg/aaparser work on read-only root 2017-05-18 00:05:13 +10:00
archive Implement incremental file sync using client session 2017-06-22 11:52:35 -07:00
authorization Increase test Coverage of pkg/authorization 2017-06-23 12:35:46 +05:00
broadcaster Improved push and pull with upload manager and download manager 2015-12-09 19:13:35 -08:00
chrootarchive LCOW: Create layer folders with correct ACL 2017-06-20 19:50:12 -07:00
devicemapper devicemapper: change LogInit and move all callbacks to pkg 2017-07-04 02:04:26 +10:00
directory Fix filepath.Walk misusage in pkg/directory 2016-05-30 07:40:46 +00:00
discovery Update docker daemon to dockerd 2016-12-27 17:32:15 +08:00
filenotify Use octal values for file mode in filenotify poller and sysinfo_linux tests 2017-06-02 12:27:10 +10:00
fileutils Enable a unit test on windows. 2017-04-21 12:31:16 -04:00
fsutils pkg: return directly without ifs where possible 2016-12-13 22:10:11 +02:00
homedir gcplogs: forcibly set HOME on static UNIX binary 2016-12-29 03:17:26 +00:00
idtools LCOW: Create layer folders with correct ACL 2017-06-20 19:50:12 -07:00
ioutils move multireader out of /pkg 2017-06-01 16:22:00 -07:00
jsonlog pkg/*: clean up a few issues 2017-03-30 16:50:46 +03:00
jsonmessage Update the stream formatter to display custom unit numbers. 2017-05-11 11:13:11 -07:00
listeners Don't error with empty group 2017-04-27 09:26:21 -07:00
locker fix some typos 2016-12-28 09:43:27 +08:00
longpath
loopback Make pkg/devicemapper and pkg/loopback depend on cgo in build tags 2017-03-29 17:55:42 -07:00
mount Do not remove containers from memory on error 2017-05-05 17:02:04 -04:00
namesgenerator pkg: remove random package 2017-05-08 17:02:02 -07:00
parsers Fix building client on OpenBSD 2017-03-26 20:47:18 +00:00
pidfile LCOW: Create layer folders with correct ACL 2017-06-20 19:50:12 -07:00
platform Increase the Coverage of pkg/platform 2017-05-31 13:26:40 +05:00
plugingetter plugingetter: Avoid all caps for constant declarations 2017-01-04 10:19:04 -08:00
plugins Increase the Coverage of pkg/plugins 2017-06-12 12:23:10 +05:00
pools pkg/pools: add buffer32KPool & use it for copy 2017-06-10 21:12:48 +03:00
progress Update the stream formatter to display custom unit numbers. 2017-05-11 11:13:11 -07:00
promise Added Test Case Coverage for PKG/PROMISE 2017-06-13 15:17:40 +05:00
pubsub Revert "use pubsub instead of filenotify to follow json logs" 2016-02-23 21:43:52 -05:00
reexec Added Test Case Coverage for PKG/REEXEC 2017-06-09 12:08:04 +05:00
registrar pkg/*: clean up a few issues 2017-03-30 16:50:46 +03:00
signal Add test coverage to pkg/signal 2017-06-01 14:53:15 +05:00
stdcopy fix docker logs error handling 2017-02-14 14:38:42 -08:00
streamformatter Increase the Coverage of pkg/streamformatter 2017-06-22 12:29:10 +05:00
stringid pkg: remove random package 2017-05-08 17:02:02 -07:00
stringutils pkg: remove random package 2017-05-08 17:02:02 -07:00
symlink Update copyright dates 2017-02-24 19:41:59 +00:00
sysinfo Increased Unit Test Coverage for PKG/SYSINFO 2017-06-09 12:06:12 +05:00
system LCOW: Create layer folders with correct ACL 2017-06-20 19:50:12 -07:00
tailfile Change reading order of tailfile 2016-11-13 20:08:51 -08:00
tarsum Add support for COPY from previous rootfs 2017-03-23 15:12:15 -07:00
templates Increase test Coverage of pkg/templates 2017-06-23 12:38:33 +05:00
term Merge pull request #33520 from naveed-jamil-tenpearls/pkg/term 2017-06-08 13:41:49 -07:00
testutil Fix copy when used with scratch and images with empty RootFS 2017-06-08 15:07:16 -04:00
tlsconfig Remove Go 1.6 code from moby 2017-06-19 15:59:00 +03:00
truncindex Fix non thread-safe Iteration around go-patricia 2017-01-09 17:06:50 +00:00
urlutil Move IsGitTransport() to gitutils 2017-06-26 10:07:04 -07:00
useragent Fix typos found across repository 2015-12-13 18:04:12 +02:00
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!