summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/system.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-28 18:11:39 +0200
committerGitHub <noreply@github.com>2020-04-28 18:11:39 +0200
commit4ed125f7b5228b3e5898e23fbb91d6db8b9a6c18 (patch)
tree03d2c90b648219f3481653f9cd7a84b78b2d4eba /pkg/domain/entities/system.go
parent5077aece7e7c7531f002116ffce33c0cf0d03ec3 (diff)
parent5436e314417e4822d105d1efdbea4e5442d6f42d (diff)
downloadpodman-4ed125f7b5228b3e5898e23fbb91d6db8b9a6c18.tar.gz
podman-4ed125f7b5228b3e5898e23fbb91d6db8b9a6c18.tar.bz2
podman-4ed125f7b5228b3e5898e23fbb91d6db8b9a6c18.zip
Merge pull request #5907 from sujil02/systemprune-v2
Adding system prune for podman v2
Diffstat (limited to 'pkg/domain/entities/system.go')
-rw-r--r--pkg/domain/entities/system.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/domain/entities/system.go b/pkg/domain/entities/system.go
index 3ddc04293..de93a382f 100644
--- a/pkg/domain/entities/system.go
+++ b/pkg/domain/entities/system.go
@@ -12,3 +12,17 @@ type ServiceOptions struct {
Timeout time.Duration // duration of inactivity the service should wait before shutting down
Command *cobra.Command // CLI command provided. Used in V1 code
}
+
+// SystemPruneOptions provides options to prune system.
+type SystemPruneOptions struct {
+ All bool
+ Volume bool
+}
+
+// SystemPruneReport provides report after system prune is executed.
+type SystemPruneReport struct {
+ PodPruneReport []*PodPruneReport
+ *ContainerPruneReport
+ *ImagePruneReport
+ VolumePruneReport []*VolumePruneReport
+}