moby/plugin
Brian Goff 11cf394e5e Make plugin removes more resilient to failure
Before this patch, if the plugin's `config.json` is successfully removed
but the main plugin state dir could not be removed for some reason (e.g.
leaked mount), it will prevent the daemon from being able to be
restarted.

This patches changes this to atomically remove the plugin such that on
daemon restart we can detect that there was an error and re-try. It also
changes the logic so that it only logs errors on restore rather than
erroring out the daemon.

This also removes some code which is now duplicated elsewhere.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-06-30 09:58:19 -04:00
..
v2 LCOW: OCI Spec and Environment for container start 2017-06-20 19:50:11 -07:00
backend_linux.go Make plugin removes more resilient to failure 2017-06-30 09:58:19 -04:00
backend_unsupported.go Use distribution reference 2017-02-07 11:08:37 -08:00
blobstore.go LCOW: Pass platform through into layer store 2017-06-20 09:21:37 -07:00
defs.go When authz plugin is disabled, remove from authz middleware chain. 2017-03-22 12:07:39 -07:00
manager.go Make plugin removes more resilient to failure 2017-06-30 09:58:19 -04:00
manager_linux.go Make plugin removes more resilient to failure 2017-06-30 09:58:19 -04:00
manager_solaris.go Make v2/Plugin accesses safe. 2016-12-06 13:23:41 -08:00
manager_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
manager_windows.go Make v2/Plugin accesses safe. 2016-12-06 13:23:41 -08:00
store.go plugin/store: fix ErrAmbiguous docstring 2017-06-12 18:07:42 +01:00
store_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00