pub struct ListContainer {Show 27 fields
pub auto_remove: Option<bool>,
pub cid_file: Option<String>,
pub command: Option<Vec<String>>,
pub created: Option<String>,
pub created_at: Option<String>,
pub exit_code: Option<i32>,
pub exited: Option<bool>,
pub exited_at: Option<i64>,
pub exposed_ports: Option<Value>,
pub id: Option<String>,
pub image: Option<String>,
pub image_id: Option<String>,
pub is_infra: Option<bool>,
pub labels: Option<HashMap<String, String>>,
pub mounts: Option<Vec<String>>,
pub names: Option<Vec<String>>,
pub namespaces: Option<Box<ListContainerNamespaces>>,
pub networks: Option<Vec<String>>,
pub pid: Option<i64>,
pub pod: Option<String>,
pub pod_name: Option<String>,
pub ports: Option<Vec<PortMapping>>,
pub restarts: Option<i32>,
pub size: Option<Box<ContainerSize>>,
pub started_at: Option<i64>,
pub state: Option<String>,
pub status: Option<String>,
}
Expand description
ListContainer : ListContainer describes a container suitable for listing
Fields§
§auto_remove: Option<bool>
AutoRemove
cid_file: Option<String>
CIDFile specified at creation time.
command: Option<Vec<String>>
Container command
created: Option<String>
Container creation time
created_at: Option<String>
Human-readable container creation time.
exit_code: Option<i32>
If container has exited, the return code from the command
exited: Option<bool>
If container has exited/stopped
exited_at: Option<i64>
Time container exited
exposed_ports: Option<Value>
ExposedPorts contains the ports that are exposed but not forwarded, see Ports for forwarded ports. The key is the port number and the string slice contains the protocols, i.e. "tcp", "udp" and "sctp".
id: Option<String>
The unique identifier for the container
image: Option<String>
Container image
image_id: Option<String>
Container image ID
is_infra: Option<bool>
If this container is a Pod infra container
labels: Option<HashMap<String, String>>
Labels for container
mounts: Option<Vec<String>>
User volume mounts
names: Option<Vec<String>>
The names assigned to the container
namespaces: Option<Box<ListContainerNamespaces>>
§networks: Option<Vec<String>>
The network names assigned to the container
pid: Option<i64>
The process id of the container
pod: Option<String>
If the container is part of Pod, the Pod ID. Requires the pod boolean to be set
pod_name: Option<String>
If the container is part of Pod, the Pod name. Requires the pod boolean to be set
ports: Option<Vec<PortMapping>>
Port mappings
restarts: Option<i32>
Restarts is how many times the container was restarted by its restart policy. This is NOT incremented by normal container restarts (only by restart policy).
size: Option<Box<ContainerSize>>
§started_at: Option<i64>
Time when container started
state: Option<String>
State of container
status: Option<String>
Status is a human-readable approximation of a duration for json output
Implementations§
Source§impl ListContainer
impl ListContainer
Sourcepub fn new() -> ListContainer
pub fn new() -> ListContainer
ListContainer describes a container suitable for listing
Trait Implementations§
Source§impl Clone for ListContainer
impl Clone for ListContainer
Source§fn clone(&self) -> ListContainer
fn clone(&self) -> ListContainer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more