moby--moby/pkg
Kir Kolyshkin 2502db66d0 pkg/system: make EnsureRemoveAll unix-specific
The tricks performed by EnsureRemoveAll only make sense for Linux and
other Unices, so separate it out, and make EnsureRemoveAll for Windows
just an alias of os.RemoveAll.

This makes sure RecursiveUnmount is not called on Windows.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-09-21 01:23:28 -07:00
..
aaparser
archive Merge pull request #40941 from cpuguy83/down_with_the_func_init 2020-07-14 15:44:08 +02:00
authorization
broadcaster
capabilities
chrootarchive chrootarchive: fix "conversion from int to string yields a string of one rune" 2020-06-25 13:38:42 +02:00
containerfs
devicemapper
directory
discovery
dmesg
filenotify
fileutils
fsutils
homedir
idtools pkg/idtools: refactor to avoid string-splitting 2020-08-20 12:24:38 +02:00
ioutils
jsonmessage remove uses of deprecated pkg/term 2020-04-21 16:29:27 +02:00
locker replace pkg/locker with github.com/moby/locker 2020-09-10 22:15:40 +02:00
longpath
loopback
mount
namesgenerator
parsers pkg/parsers: remove uses of mattn/go-shellwords 2020-07-14 14:03:10 +02:00
pidfile
platform
plugingetter
plugins Replace errors.Cause() with errors.Is() / errors.As() 2020-04-29 00:28:41 +02:00
pools
progress
pubsub
reexec
signal
stdcopy
streamformatter
stringid
symlink
sysinfo Memoize seccomp value for SysInfo 2020-09-11 22:48:46 +00:00
system pkg/system: make EnsureRemoveAll unix-specific 2020-09-21 01:23:28 -07:00
tailfile
tarsum
term
truncindex
urlutil
useragent
README.md

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!