pub struct ContainerListLibpod<'a> {
pub all: Option<bool>,
pub limit: Option<i64>,
pub namespace: Option<bool>,
pub pod: Option<bool>,
pub size: Option<bool>,
pub sync: Option<bool>,
pub filters: Option<&'a str>,
}
Available on crate feature
v4
only.Fields§
§all: Option<bool>
Return all containers. By default, only running containers are shown
limit: Option<i64>
Return this number of most recently created containers, including non-running ones.
namespace: Option<bool>
Include namespace information
pod: Option<bool>
Ignored. Previously included details on pod name and ID that are currently included by default.
size: Option<bool>
Return the size of container as fields SizeRw and SizeRootFs.
sync: Option<bool>
Sync container state with OCI runtime
filters: Option<&'a str>
A JSON encoded value of the filters (a map[string][]string
) to process on the containers list. Available filters:
ancestor
=(<image-name>[:<tag>]
,<image id>
, or<image@digest>
)before
=(<container id>
or<container name>
)expose
=(<port>[/<proto>]
or<startport-endport>/[<proto>]
)exited=<int>
containers with exit code of<int>
health
=(starting
,healthy
,unhealthy
ornone
)id=<ID>
a container’s IDis-task
=(true
orfalse
)label
=(key
or"key=value"
) of a container labelname=<name>
a container’s namenetwork
=(<network id>
or<network name>
)pod
=(<pod id>
or<pod name>
)publish
=(<port>[/<proto>]
or<startport-endport>/[<proto>]
)since
=(<container id>
or<container name>
)status
=(created
,restarting
,running
,removing
,paused
,exited
ordead
)volume
=(<volume name>
or<mount point destination>
)
Trait Implementations§
Source§impl<'a> Debug for ContainerListLibpod<'a>
impl<'a> Debug for ContainerListLibpod<'a>
Source§impl<'a> Default for ContainerListLibpod<'a>
impl<'a> Default for ContainerListLibpod<'a>
Source§fn default() -> ContainerListLibpod<'a>
fn default() -> ContainerListLibpod<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ContainerListLibpod<'a>
impl<'a> RefUnwindSafe for ContainerListLibpod<'a>
impl<'a> Send for ContainerListLibpod<'a>
impl<'a> Sync for ContainerListLibpod<'a>
impl<'a> Unpin for ContainerListLibpod<'a>
impl<'a> UnwindSafe for ContainerListLibpod<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more