spiegel_podman/pkg/api/handlers/libpod
Matthew Heon b53cb57680 Initial implementation of volume plugins
This implements support for mounting and unmounting volumes
backed by volume plugins. Support for actually retrieving
plugins requires a pull request to land in containers.conf and
then that to be vendored, and as such is not yet ready. Given
this, this code is only compile tested. However, the code for
everything past retrieving the plugin has been written - there is
support for creating, removing, mounting, and unmounting volumes,
which should allow full functionality once the c/common PR is
merged.

A major change is the signature of the MountPoint function for
volumes, which now, by necessity, returns an error. Named volumes
managed by a plugin do not have a mountpoint we control; instead,
it is managed entirely by the plugin. As such, we need to cache
the path in the DB, and calls to retrieve it now need to access
the DB (and may fail as such).

Notably absent is support for SELinux relabelling and chowning
these volumes. Given that we don't manage the mountpoint for
these volumes, I am extremely reluctant to try and modify it - we
could easily break the plugin trying to chown or relabel it.

Also, we had no less than *5* separate implementations of
inspecting a volume floating around in pkg/infra/abi and
pkg/api/handlers/libpod. And none of them used volume.Inspect(),
the only correct way of inspecting volumes. Remove them all and
consolidate to using the correct way. Compat API is likely still
doing things the wrong way, but that is an issue for another day.

Fixes #4304

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2021-01-14 15:35:33 -05:00
..
containers.go Include named volumes in container migration 2021-01-07 07:51:19 +00:00
containers_create.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
containers_stats.go Lowercase some errors 2020-10-05 15:56:44 -07:00
copy.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
generate.go generate kube on multiple containers 2020-12-07 11:34:39 -06:00
healthcheck.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
images.go Remove the ability to use [name:tag] in podman load command 2021-01-12 17:38:32 -05:00
images_pull.go libpod API: pull: fix channel race 2021-01-04 17:46:24 +01:00
info.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
manifests.go fix allowing inspect manifest of non-local image 2020-09-30 14:12:32 -04:00
networks.go podman network label support 2020-11-28 18:35:43 +01:00
play.go Add an option to control if play kube should start the pod 2020-11-17 20:00:58 +01:00
pods.go Use abi PodPs implementation for libpod/pods/json endpoint 2021-01-09 23:38:26 +01:00
swagger.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
system.go Restore compatible API for prune endpoints 2021-01-07 15:32:32 -07:00
volumes.go Initial implementation of volume plugins 2021-01-14 15:35:33 -05:00