diff options
author | Karthik Elango <kelango@redhat.com> | 2022-06-28 15:31:20 -0400 |
---|---|---|
committer | Karthik Elango <kelango@redhat.com> | 2022-07-14 13:18:53 -0400 |
commit | a2f6cc74e72edf0b7045c8410ed3f45489999e2b (patch) | |
tree | 7424569f997630623d4290ace20ccf63cf743897 /pkg/domain/entities | |
parent | 3637d55191be2e9a5b9e13f8f62db4c27d188741 (diff) | |
download | podman-a2f6cc74e72edf0b7045c8410ed3f45489999e2b.tar.gz podman-a2f6cc74e72edf0b7045c8410ed3f45489999e2b.tar.bz2 podman-a2f6cc74e72edf0b7045c8410ed3f45489999e2b.zip |
Podman stop --filter flag
Filter flag is added for podman stop and podman --remote stop. Filtering logic is implemented in
getContainersAndInputByContext(). Start filtering can be manipulated to use this logic as well to limit redundancy.
Signed-off-by: Karthik Elango <kelango@redhat.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/containers.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/domain/entities/containers.go b/pkg/domain/entities/containers.go index 17408f12f..934a7cbdc 100644 --- a/pkg/domain/entities/containers.go +++ b/pkg/domain/entities/containers.go @@ -80,6 +80,7 @@ type PauseUnpauseReport struct { } type StopOptions struct { + Filters map[string][]string All bool Ignore bool Latest bool |