spiegel_podman/pkg/api/server
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
..
docs.go APIv2 review corrections #3 2020-01-25 15:09:09 -06:00
handler_api.go Refactor service idle support 2020-04-13 08:11:36 -07:00
listener_api.go Add service endpoint 2020-01-21 16:35:45 -06:00
register_auth.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_containers.go swagger-check: new CI tool to cross-check swagger 2020-04-14 11:27:44 -06:00
register_distribution.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_events.go apiv2 add bindings for logs|events 2020-03-19 09:38:00 -05:00
register_exec.go Implement APIv2 Exec Create and Inspect Endpoints 2020-03-23 16:20:42 -04:00
register_healthcheck.go add apiv2 healthcheck code 2020-03-13 07:43:12 -05:00
register_images.go podman rmi: refactor logic 2020-04-21 08:12:25 +02:00
register_info.go refactor info 2020-04-06 12:45:42 -05:00
register_manifest.go swagger: more consistency fixes 2020-03-18 13:33:07 -06:00
register_monitor.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_ping.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_plugins.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_pods.go Add pod prune for api v2. 2020-04-17 17:30:58 -04:00
register_swagger.go serve swagger when present 2020-03-18 14:34:14 -05:00
register_swarm.go Register handlers without version to align with docker API 2020-03-05 22:28:22 +00:00
register_system.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_version.go Refactor handler packages 2020-03-10 08:03:41 -07:00
register_volumes.go podmanv2 volumes 2020-03-24 16:03:49 -05:00
server.go V2 Fix support for tcp://[::]<port> connections 2020-04-17 16:39:59 -07:00
swagger.go podman v2 remove bloat v2 2020-04-16 12:04:46 -05:00