an [abandoned] attempt to slice out the docker/docker/pkg package
Find a file
Antonio Murdaca 826c468f2c Move sysinfo out of daemon struct
sysinfo struct was initialized at daemon startup to make sure
kernel configs such as device cgroup are present and error out if not.
The struct was embedded in daemon struct making impossible to detect
if some system config is changed at daemon runtime (i.e. someone
umount the memory cgroup). This leads to container's starts failure if
some config is changed at daemon runtime.
This patch moves sysinfo out of daemon and initilize and check it when
needed (daemon startup, containers creation, contaienrs startup for
now).

Signed-off-by: Antonio Murdaca <runcom@linux.com>
(cherry picked from commit 472b6f66e03f9a85fe8d23098dac6f55a87456d8)
2015-08-06 15:46:09 -07:00
ansiescape Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
archive Enable golint in pkg/arcive 2015-08-04 09:52:54 +08:00
broadcastwriter Enable golint part of #14756 2015-08-03 09:45:05 +08:00
chrootarchive Enable golint in pkg/arcive 2015-08-04 09:52:54 +08:00
devicemapper devicemapper: Check loop devices of existing pool 2015-07-07 14:13:29 -04:00
directory make docker compile on freebsd 2015-07-29 21:25:56 +03:00
fileutils Add missing tests and docs for pkg/fileutils 2015-07-12 22:43:42 +02:00
graphdb Enable golint part of #14756 2015-08-03 09:45:05 +08:00
homedir Update libcontainer 2015-07-16 16:02:26 -07:00
httputils Enable golint part of #14756 2015-08-03 09:45:05 +08:00
ioutils Enable golint part of #14756 2015-08-03 09:45:05 +08:00
jsonlog remove dead code after decoupling from jsonlog 2015-07-21 20:47:35 -04:00
jsonmessage Fix uses of "int" where "int64" should be used instead 2015-07-31 16:31:40 -07:00
listenbuffer linting changes 2015-06-17 01:16:57 +03:00
mflag Fix golint for pkg/mflag 2015-07-28 15:32:42 +02:00
mount pkg: mount: golint 2015-07-22 10:26:10 +02:00
namesgenerator pkg/namesgenerator: add a 'names-generator' binary 2015-07-31 13:07:40 +02:00
nat Fix go vet errors 2015-07-25 17:00:10 -04:00
parsers make docker compile on freebsd 2015-07-29 21:25:56 +03:00
pidfile Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
plugins Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
pools Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
progressreader Fix uses of "int" where "int64" should be used instead 2015-07-31 16:31:40 -07:00
promise Move Go() promise-like func from utils to pkg/promise 2014-09-29 23:16:27 -07:00
proxy Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
pubsub Don't use time.After if there is no timeout 2015-07-14 09:14:51 -07:00
random Prefer crypto rand seed for pkg/rand 2015-07-29 12:55:57 -04:00
reexec make docker compile on freebsd 2015-07-29 21:25:56 +03:00
signal Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
sockets make docker compile on freebsd 2015-07-29 21:25:56 +03:00
stdcopy Fix Typo in stdcopy.go 2015-06-24 15:00:14 +08:00
streamformatter Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
stringid Add GenerateNonCryptoID function to avoid entropy exhaustion 2015-07-28 22:31:01 -07:00
stringutils Use global random *rand.Rand instance in pkg 2015-07-29 09:30:48 -07:00
symlink Remove subdirectories MAINTAINERS files 2015-03-06 18:21:51 -08:00
sysinfo Move sysinfo out of daemon struct 2015-08-06 15:46:09 -07:00
system make docker compile on freebsd 2015-07-29 21:25:56 +03:00
tailfile Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
tarsum Fix uses of "int" where "int64" should be used instead 2015-07-31 16:31:40 -07:00
term Fix golint nit in term_windows.go 2015-07-27 17:40:49 -07:00
timeoutconn Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
timeutils Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
tlsconfig tlsconfig: better format for error message in tlsconfig 2015-07-30 14:15:41 -04:00
truncindex Remove read index that causes dead lock. 2015-07-31 13:53:17 -07:00
ulimit Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
units Multiple fixes to 'docker stats' output: 2015-07-30 10:14:57 +03:00
urlutil Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
useragent Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
version Fix minor typo 2015-03-25 00:46:22 +08:00
README.md Add README to pkg 2013-12-23 23:12:19 +00:00

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!