spiegel_podman/pkg/api/handlers/libpod
Valentin Rothberg 7f97896c59 image removal: refactor part 2
Continue the refactoring of image removal.  I didn't manage to break all
the following changes into smaller and easier to digest commits due to
time constraints:

 * Return an error slice instead of a single error. Use multierror only
   in the client/frontend.  Reflect that in the types.

 * Use the batch image removal in the client while preserving the more
   rest-idiomatic single-image removal endpoint.

 * Add a new handler for the single-image removal endpoint to make it
   share the same code as the batch endpoint.

 * Expose bindings for the single and batch endpoints, so we can
   properly test them.

 * Add several convenience functions for error handling to
   pkg/errorhandling.

 * Set the correct error type in libpod to set the exit code to 2 when
   one or more containers are using an image.

 * Massage the bindings tests a bit and tackle compilation errors.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-05-04 16:01:45 +02:00
..
containers.go allow filters to work when listing containers 2020-04-16 09:21:44 -05:00
containers_create.go Add support for volumes-from, image volumes, init 2020-04-27 13:13:21 -04:00
healthcheck.go add apiv2 healthcheck code 2020-03-13 07:43:12 -05:00
images.go image removal: refactor part 2 2020-05-04 16:01:45 +02:00
info.go refactor info 2020-04-06 12:45:42 -05:00
manifests.go Add support for containers.conf 2020-03-27 14:36:03 -04:00
networks.go Add support for containers.conf 2020-03-27 14:36:03 -04:00
pods.go Merge pull request #5907 from sujil02/systemprune-v2 2020-04-28 18:11:39 +02:00
swagger.go Add pod prune for api v2. 2020-04-17 17:30:58 -04:00
system.go Adding system prune for podman v2 2020-04-24 15:44:07 -04:00
volumes.go Adding system prune for podman v2 2020-04-24 15:44:07 -04:00