aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/entities/engine_container.go
diff options
context:
space:
mode:
authorSujil02 <sushah@redhat.com>2020-04-08 04:49:32 -0400
committerSujil02 <sushah@redhat.com>2020-04-15 11:17:33 -0400
commitec4060aef6c77c049fc2c3b6438ebb5590f6ab69 (patch)
tree2ce43bc8b0a0c0b9c9bdf1d404c6339e06441a6b /pkg/domain/entities/engine_container.go
parent37ed662f323ef4700ae14d441fb2264a59960baa (diff)
downloadpodman-ec4060aef6c77c049fc2c3b6438ebb5590f6ab69.tar.gz
podman-ec4060aef6c77c049fc2c3b6438ebb5590f6ab69.tar.bz2
podman-ec4060aef6c77c049fc2c3b6438ebb5590f6ab69.zip
Ability to prune container in api V2
Adds ability to prune containers for v2. Adds client side prompt with force flag and filters options to prune. Signed-off-by: Sujil02 <sushah@redhat.com>
Diffstat (limited to 'pkg/domain/entities/engine_container.go')
-rw-r--r--pkg/domain/entities/engine_container.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/domain/entities/engine_container.go b/pkg/domain/entities/engine_container.go
index 2001ab49c..24e7995e7 100644
--- a/pkg/domain/entities/engine_container.go
+++ b/pkg/domain/entities/engine_container.go
@@ -13,6 +13,7 @@ type ContainerEngine interface {
ContainerAttach(ctx context.Context, nameOrId string, options AttachOptions) error
ContainerCheckpoint(ctx context.Context, namesOrIds []string, options CheckpointOptions) ([]*CheckpointReport, error)
ContainerCleanup(ctx context.Context, namesOrIds []string, options ContainerCleanupOptions) ([]*ContainerCleanupReport, error)
+ ContainerPrune(ctx context.Context, options ContainerPruneOptions) (*ContainerPruneReport, error)
ContainerCommit(ctx context.Context, nameOrId string, options CommitOptions) (*CommitReport, error)
ContainerCreate(ctx context.Context, s *specgen.SpecGenerator) (*ContainerCreateReport, error)
ContainerDiff(ctx context.Context, nameOrId string, options DiffOptions) (*DiffReport, error)