Brian Goff 677d41aa3b Plumb context through info endpoint 1 year ago
..
aaparser e3e715666f pkg/aaparser: deprecate GetVersion, as it's no longer used 2 years ago
archive 3cf409aa9e pkg/archive: migrate to (tar.Header).PAXRecords 1 year ago
authorization cff4f20c44 migrate to github.com/containerd/log v0.1.0 1 year ago
broadcaster f23c00d870 Various code-cleanup 7 years ago
capabilities 1291bbfa50 pkg/capabilities: format code with gofumpt 2 years ago
chrootarchive 9e3ed7b429 pkg/chrootarchive: fix Darwin build 1 year ago
containerfs 6c6e1fb13d pkg/containerfs: format code with gofumpt 1 year ago
directory ab35df454d remove pre-go1.17 build-tags 2 years ago
dmesg 2841b05b71 Use Klogctl from x/sys/unix to read Linux kernel log 6 years ago
fileutils 677d41aa3b Plumb context through info endpoint 1 year ago
homedir 3c1de2e667 pkg/homedir: deprecate Key() utility 2 years ago
idtools df3a321164 migrate to github.com/moby/sys/user 1 year ago
ioutils 3cfc1ffb0a pkg/ioutils: some cleanups in tests 2 years ago
jsonmessage ec11aea880 pkg/jsonmessage: use string-literals for easier grep'ing 2 years ago
longpath c63ea32a17 pkg/ioutils: TempDir: move to pkg/longpath 2 years ago
loopback cff4f20c44 migrate to github.com/containerd/log v0.1.0 1 year ago
meminfo ab35df454d remove pre-go1.17 build-tags 2 years ago
namesgenerator 952e1e62c5 Sort entries in pkg/namesgenerator 2 years ago
parsers cff4f20c44 migrate to github.com/containerd/log v0.1.0 1 year ago
pidfile 7493debe26 pkg/pidfile: implement Read() 2 years ago
platform cff4f20c44 migrate to github.com/containerd/log v0.1.0 1 year ago
platforms 1616a09b61 add support for image inspect with containerd-integration 2 years ago
plugingetter 7c77df8acc Move plugin client to separate interface 7 years ago
plugins cff4f20c44 migrate to github.com/containerd/log v0.1.0 1 year ago
pools 9f0b3f5609 bump gotest.tools v3.0.1 for compatibility with Go 1.14 5 years ago
process ab35df454d remove pre-go1.17 build-tags 2 years ago
progress c55a4ac779 refactor: move from io/ioutil to io and os package 3 years ago
reexec ab35df454d remove pre-go1.17 build-tags 2 years ago
rootless 056be8b7b0 Merge pull request #46473 from thaJeztah/c8d_logs 1 year ago
stack 211d3a8c32 pkg/stack: format code with gofumpt 1 year ago
stdcopy f930559076 pkg/stdcopy: format code with gofumpt 2 years ago
streamformatter 9f0b3f5609 bump gotest.tools v3.0.1 for compatibility with Go 1.14 5 years ago
stringid 54512f2184 pkg/stringid: optimize performance 2 years ago
sysinfo cff4f20c44 migrate to github.com/containerd/log v0.1.0 1 year ago
system a3c97beee0 image: implement CheckOS, deprecate pkg/system IsOSSupported 1 year ago
tailfile 79495c5b6a pkg/tailfile: rename max/min as it collides with go1.21 builtin 1 year ago
tarsum 63a9d72ee8 pkg/tarsum: handle xattrs like archive/tar does 1 year ago
useragent 4f0d95fa6e Add canonical import comment 7 years ago
README.md d040d637a9 Rename a few docker to moby 7 years ago

README.md

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

Utility packages are kept separate from the moby 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 Moby 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!