aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/entities
diff options
context:
space:
mode:
authorToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-07-30 09:28:22 +0900
committerToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-07-30 10:59:59 +0900
commit53ec479685a7636a1bcc75bf3a88fbf7d95ba72a (patch)
tree644ccd7c975901490fadb085950710ad3d83195d /pkg/domain/entities
parentfed326d8a6f8d4f7dc490099b29d51fc1754789f (diff)
downloadpodman-53ec479685a7636a1bcc75bf3a88fbf7d95ba72a.tar.gz
podman-53ec479685a7636a1bcc75bf3a88fbf7d95ba72a.tar.bz2
podman-53ec479685a7636a1bcc75bf3a88fbf7d95ba72a.zip
Add rm --filter option
--filter : remove the filtered container. Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r--pkg/domain/entities/containers.go1
-rw-r--r--pkg/domain/entities/reports/containers.go5
2 files changed, 4 insertions, 2 deletions
diff --git a/pkg/domain/entities/containers.go b/pkg/domain/entities/containers.go
index df793034b..7048cd1d2 100644
--- a/pkg/domain/entities/containers.go
+++ b/pkg/domain/entities/containers.go
@@ -131,6 +131,7 @@ type RestartReport struct {
}
type RmOptions struct {
+ Filters map[string][]string
All bool
Depend bool
Force bool
diff --git a/pkg/domain/entities/reports/containers.go b/pkg/domain/entities/reports/containers.go
index db9a66012..6759fc402 100644
--- a/pkg/domain/entities/reports/containers.go
+++ b/pkg/domain/entities/reports/containers.go
@@ -1,8 +1,9 @@
package reports
type RmReport struct {
- Id string `json:"Id"` //nolint:revive,stylecheck
- Err error `json:"Err,omitempty"`
+ Id string `json:"Id"` //nolint:revive,stylecheck
+ Err error `json:"Err,omitempty"`
+ RawInput string
}
func RmReportsIds(r []*RmReport) []string {