From 4f09cfdaccfdd0f1deb01e52c7e1b18a9cec7d49 Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 23 Dec 2019 09:33:29 -0600 Subject: 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 --- libpod/image/config.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 libpod/image/config.go (limited to 'libpod/image/config.go') diff --git a/libpod/image/config.go b/libpod/image/config.go new file mode 100644 index 000000000..40e7fd496 --- /dev/null +++ b/libpod/image/config.go @@ -0,0 +1,8 @@ +package image + +// ImageDeleteResponse is the response for removing an image from storage and containers +// what was untagged vs actually removed +type ImageDeleteResponse struct { + Untagged []string `json:"untagged"` + Deleted string `json:"deleted"` +} -- cgit v1.2.3-54-g00ecf