moby--moby/volume
Brian Goff f29bbd16f5 Refcount graphdriver plugins properly
Adds 2 new methods to v2 plugin `Acquire` and `Release` which allow
refcounting directly at the plugin level instead of just the store.
Since a graphdriver is initialized exactly once, and is really managed
by a separate object, it didn't really seem right to call
`getter.Get()` to refcount graphdriver plugins.
On shutdown it was particularly weird where we'd either need to keep a
driver reference in daemon, or keep a reference to the pluggin getter in
the layer store, and even then still store extra details on if the
graphdriver is a plugin or not.

Instead the plugin proxy itself will handle calling the neccessary
refcounting methods directly on the plugin object.

Also adds a new interface in `plugingetter` to account for these new
functions which are not going to be implemented by v1 plugins.

Changes terms `plugingetter.CREATE` and `plugingetter.REMOVE` to
`ACQUIRE` and `RELEASE` respectively, which seems to be better
adjectives for what we're doing.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-12-09 19:46:28 -05:00
..
drivers Refcount graphdriver plugins properly 2016-12-09 19:46:28 -05:00
local Restrict checkpoint name to prevent directory traversal 2016-11-23 13:23:07 -08:00
store volume: Use a map of maps for VolumeStore.refs 2016-12-05 15:39:05 -08:00
testutils test: fix trivial code convention noncompliance 2016-09-12 07:36:52 +00:00
validate.go api: fix ReadOnly support for tmpfs 2016-11-08 06:49:17 +00:00
validate_test.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
validate_test_unix.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
validate_test_windows.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume.go Fix a bit typos 2016-12-09 03:05:11 +08:00
volume_copy.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_copy_unix.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_copy_windows.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_linux.go Use container Mounts API for Swarm containers. 2016-11-22 13:23:51 -05:00
volume_linux_test.go api: fix ReadOnly support for tmpfs 2016-11-08 06:49:17 +00:00
volume_propagation_linux.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_propagation_linux_test.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_propagation_unsupported.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_test.go Fix several issues with `go vet` and `go fmt` 2016-11-17 06:31:28 -08:00
volume_unix.go Add new `HostConfig` field, `Mounts`. 2016-09-13 09:55:35 -04:00
volume_unsupported.go api: fix ReadOnly support for tmpfs 2016-11-08 06:49:17 +00:00
volume_windows.go Windows: Remove TP5 support from volume 2016-09-21 11:03:19 -07:00