spiegel_podman/pkg
Valentin Rothberg 09dc701097 podman rmi: refactor logic
While this commit was initially meant to fix #5847, it has turned into a
bigger refactoring which I did not manage to break into smaller pieces:

 * Fix #5847 by refactoring the image-removal logic.

 * Make the api handler for image-removal use the ABI code. This way,
   both (i.e., ABI and Tunnel) end up using the same code.  Achieving
   this code share required to move some code around to prevent circular
   dependencies.

 * Everything in pkg/api (excluding pkg/api/types) must now only be
   accessed from code using `ABISupport`.

 * Avoid imports from entities on handlers to prevent circular
   dependencies.

 * Move `podman system service` logic into `cmd` to prevent circular
   dependencies - it depends on pkg/api.

 * Also remove the build header from infra/abi files.  It will otherwise
   confuse swagger and other tools; errors we cannot fix as go doesn't
   expose a build-tag env variable.

Fixes: #5847
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-04-21 08:12:25 +02:00
..
annotations Add ContainerManager annotation to created containers 2019-09-10 09:37:14 +02:00
api podman rmi: refactor logic 2020-04-21 08:12:25 +02:00
apparmor Add support for containers.conf 2020-03-27 14:36:03 -04:00
autoupdate auto update: skip non-image policies 2020-04-14 11:47:04 +02:00
bindings podman rmi: refactor logic 2020-04-21 08:12:25 +02:00
cgroups Fix invalid container path comparison for pid cgroup 2020-04-14 11:02:42 +02:00
channelwriter account for varlink calls that dont use more 2019-07-10 08:50:05 -05:00
checkpoint podmanv2 checkpoint and restore 2020-04-03 09:32:06 -05:00
criu Add helper function to read out CRIU version 2018-10-23 12:52:03 +02:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
domain podman rmi: refactor logic 2020-04-21 08:12:25 +02:00
env Merge pull request #5381 from vrothberg/ENVFIX 2020-03-04 13:26:48 -05:00
errorhandling first pass of corrections for golangci-lint 2019-07-10 15:52:17 -05:00
hooks golangci: enable goimports 2020-03-05 20:03:44 +01:00
inspect consolidate env handling into pkg/env 2020-03-03 11:47:24 +01:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
lookup golangci: enable goimports 2020-03-05 20:03:44 +01:00
namespaces userns: support --userns=auto 2020-04-06 16:32:36 +02:00
netns network: hide EPERM warning when rootless 2019-10-01 08:51:58 +02:00
network network create should use firewall plugin 2020-02-27 14:39:31 -06:00
ps podman v2 remove bloat v2 2020-04-16 12:04:46 -05:00
registrar Update registrar unit tests to match them of cri-o 2019-04-04 08:53:32 +02:00
registries podman: mirror information 2019-12-12 19:53:46 -03:00
resolvconf use storage/pkg/ioutils 2020-03-09 09:03:51 +01:00
rootless rootless: move join namespace inside child process 2020-04-20 17:40:25 +02:00
rootlessport rootlessport: use x/sys/unix instead of syscall 2020-03-24 13:56:20 +01:00
seccomp apiv2 container create using specgen 2020-02-19 15:20:15 -06:00
signal Fixes for load and other system tests 2020-04-13 13:08:04 -05:00
spec Podman V2 birth 2020-04-16 15:53:58 -05:00
specgen Handle Linux Capabilities correctly 2020-04-20 15:50:46 -04:00
sysinfo Setup a reasonable default for pids-limit 4096 2019-10-04 16:09:13 -04:00
systemd V2 Fix support for tcp://[::]<port> connections 2020-04-17 16:39:59 -07:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
tracing make lint: include pkg/tracing 2020-01-14 09:54:48 +01:00
trust codespell: spelling corrections 2019-11-13 08:15:00 +11:00
util Merge pull request #5690 from rhatdan/selinux 2020-04-16 05:29:19 -07:00
varlink V2 Move varlink home 2020-03-30 08:18:35 -07:00
varlinkapi Podman V2 birth 2020-04-16 15:53:58 -05:00