#[non_exhaustive]pub struct Container {
pub hash: Option<Box<Fingerprint>>,
pub image: Option<Box<Image>>,
pub labels: Option<Vec<String>>,
pub name: Option<String>,
pub network_driver: Option<String>,
pub orchestrator: Option<String>,
pub pod_uuid: Option<String>,
pub runtime: Option<String>,
pub size: Option<i64>,
pub tag: Option<String>,
pub tags: Option<Vec<KeyValueObject>>,
pub uid: Option<String>,
}Expand description
Container
The Container object describes an instance of a specific container. A container is a prepackaged, portable system image that runs isolated on an existing system using a container runtime like containerd.
[] Category: | Name: container
Constraints:
- at_least_one:
[uid,name]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hash: Option<Box<Fingerprint>>Hash
Commit hash of image created for docker or the SHA256 hash of the container. For example: 13550340a8681c84c861aac2e5b440161c2b33a3e4f302ac680ca5b686de48de.
recommended
image: Option<Box<Image>>Image
The container image used as a template to run the container.
recommended
labels: Option<Vec<String>>Labels
The list of labels associated to the container.
optional
name: Option<String>Name
The container name.
recommended
network_driver: Option<String>Network Driver
The network driver used by the container. For example, bridge, overlay, host, none, etc.
optional
orchestrator: Option<String>Orchestrator
The orchestrator managing the container, such as ECS, EKS, K8s, or OpenShift.
optional
pod_uuid: Option<String>Pod UUID
The unique identifier of the pod (or equivalent) that the container is executing on.
optional
runtime: Option<String>Runtime
The backend running the container, such as containerd or cri-o.
optional
size: Option<i64>Size
The size of the container image.
recommended
tag: Option<String>Image Tag
The tag used by the container. It can indicate version, format, OS.
optional
Tags
The list of tags; {key:value} pairs associated to the container.
optional
uid: Option<String>Unique ID
The full container unique identifier for this instantiation of the container. For example: ac2ea168264a08f9aaca0dfc82ff3551418dfd22d02b713142a6843caa2f61bf.
recommended