podman_rest_client/v5/params/container_list_libpod.rs
1#[derive(Default, Debug)]
2pub struct ContainerListLibpod<'a> {
3 /// Return all containers. By default, only running containers are shown
4 pub all: Option<bool>,
5 /// Return this number of most recently created containers, including non-running ones.
6 pub limit: Option<i64>,
7 /// Include namespace information
8 pub namespace: Option<bool>,
9 /// Ignored. Previously included details on pod name and ID that are currently included by default.
10 pub pod: Option<bool>,
11 /// Return the size of container as fields SizeRw and SizeRootFs.
12 pub size: Option<bool>,
13 /// Sync container state with OCI runtime
14 pub sync: Option<bool>,
15 /// A JSON encoded value of the filters (a `map[string][]string`) to process on the containers list. Available filters:
16 /// - `ancestor`=(`<image-name>[:<tag>]`, `<image id>`, or `<image@digest>`)
17 /// - `before`=(`<container id>` or `<container name>`)
18 /// - `expose`=(`<port>[/<proto>]` or `<startport-endport>/[<proto>]`)
19 /// - `exited=<int>` containers with exit code of `<int>`
20 /// - `health`=(`starting`, `healthy`, `unhealthy` or `none`)
21 /// - `id=<ID>` a container's ID
22 /// - `is-task`=(`true` or `false`)
23 /// - `label`=(`key` or `"key=value"`) of a container label
24 /// - `name=<name>` a container's name
25 /// - `network`=(`<network id>` or `<network name>`)
26 /// - `pod`=(`<pod id>` or `<pod name>`)
27 /// - `publish`=(`<port>[/<proto>]` or `<startport-endport>/[<proto>]`)
28 /// - `since`=(`<container id>` or `<container name>`)
29 /// - `status`=(`created`, `restarting`, `running`, `removing`, `paused`, `exited` or `dead`)
30 /// - `volume`=(`<volume name>` or `<mount point destination>`)
31 pub filters: Option<&'a str>,
32}