an [abandoned] attempt to slice out the docker/docker/pkg package
Find a file
Michael Crosby b5b44ad439 Squashed commit of the following:
commit 75af1649b063abbc5d662fd2f8bc4ff62c927687
Author: Evan Hazlett <ejhazlett@gmail.com>
Date:   Sun Apr 20 01:32:42 2014 -0400

    more refactor

commit 43b36d0f15d634497127bcb17dacaa70ae92e903
Author: Evan Hazlett <ejhazlett@gmail.com>
Date:   Sun Apr 20 01:11:49 2014 -0400

    refactored cgroup param parsing to util func

commit e3738b0168a075bd92ec828879b0e46bdbbe3845
Author: Evan Hazlett <ejhazlett@gmail.com>
Date:   Sun Apr 20 00:57:19 2014 -0400

    dat error checking

commit 57872bcc59403ecd308cfe97c78f73d6ca58d165
Author: Evan Hazlett <ejhazlett@gmail.com>
Date:   Sun Apr 20 00:43:25 2014 -0400

    proper use of fmt.Errorf

commit 43dad6acc0cb21aac2b04ce074699879898ee820
Author: Evan Hazlett <ejhazlett@gmail.com>
Date:   Sun Apr 20 00:36:45 2014 -0400

    proper placement of defer

commit b7f20b934b2bc92cd39397dbc608b77bff28493c
Author: Evan Hazlett <ejhazlett@gmail.com>
Date:   Sun Apr 20 00:34:39 2014 -0400

    defers, error checking, panic avoidance

commit 7a9a6ff267f8806dfe6676486f73fe89b72968fb
Author: Evan Hazlett <ejhazlett@gmail.com>
Date:   Sun Apr 20 00:22:00 2014 -0400

    data param to use container info instead of host

commit 0e0cf7309be1644687160d6519db792b23cd26e9
Author: Evan Hazlett <ejhazlett@gmail.com>
Date:   Sun Apr 20 00:11:29 2014 -0400

    added stats for cpuacct, memory, and blkio

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
2014-04-20 11:34:28 -07:00
cgroups Squashed commit of the following: 2014-04-20 11:34:28 -07:00
collections Remove std sort and use custom sort for performances 2014-01-26 14:01:38 -08:00
graphdb runtime: Fix unique constraint error checks 2014-03-03 15:10:52 +01:00
iptables Revert "Support hairpin NAT without going through docker server" 2014-04-09 11:55:08 +00:00
label Add more label checks for selinux enabled 2014-04-07 14:44:53 -07:00
libcontainer Move raw cgroups into fs package (filesystem) 2014-04-18 21:34:26 -07:00
listenbuffer adding configuration for timeout and disable it by default 2014-03-17 15:12:02 -07:00
mflag update godoc and add MAINTAINERS for mflags 2014-03-14 17:35:41 +00:00
mount Merge pull request #3841 from alexlarsson/separate-base-fs 2014-01-31 11:49:14 -08:00
namesgenerator Fix typo in names-generator 2014-04-04 00:57:43 +02:00
netlink Fix libcontainer network support on rhel6 2014-04-09 15:44:18 +02:00
proxy Remove verbose logging for non errors 2014-02-17 13:31:13 -08:00
selinux Remove and unexport selinux functions 2014-04-07 14:59:44 -07:00
signal Like signal_linux.go, we don't have import os and os/signal 2014-03-11 23:14:58 +09:00
sysinfo remove ip_forward warning 2014-01-28 13:27:56 -06:00
system Support FreeBSD on pkg/system/utimes_*.go 2014-04-10 07:34:37 +09:00
systemd Add systemd.SdBooted() 2014-03-27 22:44:31 +01:00
term Use BSD raw mode on darwin. Fixes nano, tmux and others 2014-03-13 11:11:02 -07:00
user Use type switch instead of reflection 2014-01-31 20:15:24 -07:00
version Update Version to not use string anymore 2014-04-01 15:46:52 -07: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!