summaryrefslogtreecommitdiff
path: root/pkg/domain
diff options
context:
space:
mode:
authorAditya R <arajan@redhat.com>2022-06-27 15:47:12 +0530
committerAditya R <arajan@redhat.com>2022-06-29 12:41:57 +0530
commit5790caaef769ff3dcf8b9ebf43fb6c61d17618bf (patch)
treee51ee069bc2bf1f1f4cef44ea7d3d7e689b27184 /pkg/domain
parent324435a6486c050de4f06baaf2a3ff7c6b37071f (diff)
downloadpodman-5790caaef769ff3dcf8b9ebf43fb6c61d17618bf.tar.gz
podman-5790caaef769ff3dcf8b9ebf43fb6c61d17618bf.tar.bz2
podman-5790caaef769ff3dcf8b9ebf43fb6c61d17618bf.zip
bindings: Add support for Delete in pkg/bingings/manifest
Bindings already support `Remove` which removes a manifest from the list following function adds support for removing entire manifest for local storage. Similar functionality can be also used indirectly by using `Remove` defined in image bindings Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'pkg/domain')
-rw-r--r--pkg/domain/entities/manifest.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/domain/entities/manifest.go b/pkg/domain/entities/manifest.go
index 81f3e837b..e88c5f854 100644
--- a/pkg/domain/entities/manifest.go
+++ b/pkg/domain/entities/manifest.go
@@ -67,6 +67,21 @@ type ManifestModifyOptions struct {
type ManifestRemoveOptions struct {
}
+// ManifestRemoveReport provides the model for the removed manifest
+//
+// swagger:model
+type ManifestRemoveReport struct {
+ // Deleted manifest list.
+ Deleted []string `json:",omitempty"`
+ // Untagged images. Can be longer than Deleted.
+ Untagged []string `json:",omitempty"`
+ // Errors associated with operation
+ Errors []string `json:",omitempty"`
+ // ExitCode describes the exit codes as described in the `podman rmi`
+ // man page.
+ ExitCode int
+}
+
// ManifestModifyReport provides the model for removed digests and changed manifest
//
// swagger:model