Files
docker-cli/components/engine/pkg
Brian Goff 1c3f4cf12c Fixup some issues with plugin refcounting
In some circumstances we were not properly releasing plugin references,
leading to failures in removing a plugin with no way to recover other
than restarting the daemon.

1. If volume create fails (in the driver)
2. If a driver validation fails (should be rare)
3. If trying to get a plugin that does not match the passed in capability

Ideally the test for 1 and 2 would just be a unit test, however the
plugin interfaces are too complicated as `plugingetter` relies on
github.com/pkg/plugin/Client (a concrete type), which will require
spinning up services from within the unit test... it just wouldn't be a
unit test at this point.
I attempted to refactor this a bit, but since both libnetwork and
swarmkit are reliant on `plugingetter` as well, this would not work.
This really requires a re-write of the lower-level plugin management to
decouple these pieces.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: 3816b514387efd24394f0b8e61d55502aa6ac9ac
Component: engine
2017-10-21 15:17:57 -04:00
..
2017-09-12 12:09:59 -04:00
2017-08-24 15:08:31 -04:00
2017-09-12 12:09:59 -04:00
2017-07-31 13:16:46 -07:00
2017-08-21 18:15:08 -04:00
2017-09-27 12:55:04 +05:00
2017-08-18 14:23:44 -04:00
2017-10-02 11:20:21 -07:00
2017-09-12 12:09:59 -04:00
2017-05-08 17:02:02 -07:00
2017-07-31 13:16:46 -07:00
2017-07-31 13:16:46 -07:00
2017-09-08 18:23:21 -04:00
2017-09-12 12:09:59 -04:00
2017-07-03 13:13:09 -07:00
2017-08-21 18:15:08 -04:00
2017-05-08 17:02:02 -07:00
2017-05-08 17:02:02 -07:00
2017-07-31 13:16:46 -07:00
2016-11-13 20:08:51 -08:00
2017-09-08 18:23:21 -04:00
2017-06-26 10:07:04 -07: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!