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

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!