diff options
author | baude <bbaude@redhat.com> | 2019-12-23 09:33:29 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-12-23 10:02:14 -0600 |
commit | 4f09cfdaccfdd0f1deb01e52c7e1b18a9cec7d49 (patch) | |
tree | 491fcc6d89f0cabb26fdf2578e830b332205d589 /pkg/adapter/runtime.go | |
parent | fcd48db4d24f6dba4fb2652d72aa0d86e167aa0c (diff) | |
download | podman-4f09cfdaccfdd0f1deb01e52c7e1b18a9cec7d49.tar.gz podman-4f09cfdaccfdd0f1deb01e52c7e1b18a9cec7d49.tar.bz2 podman-4f09cfdaccfdd0f1deb01e52c7e1b18a9cec7d49.zip |
add struct response for removal of images
when removing an image from storage, we should return a struct that
details what was untagged vs deleted. this replaces the simple
println's used previously and assists in API development.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/adapter/runtime.go')
-rw-r--r-- | pkg/adapter/runtime.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/adapter/runtime.go b/pkg/adapter/runtime.go index ac843b655..dd4f0f35f 100644 --- a/pkg/adapter/runtime.go +++ b/pkg/adapter/runtime.go @@ -155,7 +155,7 @@ func (r *LocalRuntime) New(ctx context.Context, name, signaturePolicyPath, authf } // RemoveImage calls into local storage and removes an image -func (r *LocalRuntime) RemoveImage(ctx context.Context, img *ContainerImage, force bool) (string, error) { +func (r *LocalRuntime) RemoveImage(ctx context.Context, img *ContainerImage, force bool) (*image.ImageDeleteResponse, error) { return r.Runtime.RemoveImage(ctx, img.Image, force) } |