pub struct ContainerStatus {Show 18 fields
pub id: String,
pub metadata: Option<ContainerMetadata>,
pub state: i32,
pub created_at: i64,
pub started_at: i64,
pub finished_at: i64,
pub exit_code: i32,
pub image: Option<ImageSpec>,
pub image_ref: String,
pub reason: String,
pub message: String,
pub labels: HashMap<String, String>,
pub annotations: HashMap<String, String>,
pub mounts: Vec<Mount>,
pub log_path: String,
pub resources: Option<ContainerResources>,
pub image_id: String,
pub user: Option<ContainerUser>,
}Expand description
ContainerStatus represents the status of a container.
Fields§
§id: StringID of the container.
metadata: Option<ContainerMetadata>Metadata of the container.
state: i32Status of the container.
created_at: i64Creation time of the container in nanoseconds.
started_at: i64Start time of the container in nanoseconds. Default: 0 (not specified).
finished_at: i64Finish time of the container in nanoseconds. Default: 0 (not specified).
exit_code: i32Exit code of the container. Only required when finished_at != 0. Default: 0.
image: Option<ImageSpec>Spec of the image.
image_ref: StringDigested reference to the image in use.
reason: StringBrief CamelCase string explaining why container is in its current state. Must be set to “OOMKilled” for containers terminated by cgroup-based Out-of-Memory killer.
message: StringHuman-readable message indicating details about why container is in its current state.
labels: HashMap<String, String>Key-value pairs that may be used to scope and select individual resources.
annotations: HashMap<String, String>Unstructured key-value map holding arbitrary metadata. Annotations MUST NOT be altered by the runtime; the value of this field MUST be identical to that of the corresponding ContainerConfig used to instantiate the Container this status represents.
mounts: Vec<Mount>Mounts for the container.
log_path: StringLog path of container.
resources: Option<ContainerResources>Resource limits configuration of the container.
image_id: StringReference to the unique identifier of the image, on the node, as returned in the image service apis.
Note: The image_ref above has been historically used by container runtimes to reference images by digest. To separate and avoid possible misusage, we now introduce the image_id field, which should always refer to a unique image identifier on the node.
user: Option<ContainerUser>User identities initially attached to the container
Implementations§
Source§impl ContainerStatus
impl ContainerStatus
Sourcepub fn state(&self) -> ContainerState
pub fn state(&self) -> ContainerState
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: ContainerState)
pub fn set_state(&mut self, value: ContainerState)
Sets state to the provided enum value.
Trait Implementations§
Source§impl Clone for ContainerStatus
impl Clone for ContainerStatus
Source§fn clone(&self) -> ContainerStatus
fn clone(&self) -> ContainerStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContainerStatus
impl Debug for ContainerStatus
Source§impl Default for ContainerStatus
impl Default for ContainerStatus
Source§impl Message for ContainerStatus
impl Message for ContainerStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for ContainerStatus
impl Name for ContainerStatus
Source§const NAME: &'static str = "ContainerStatus"
const NAME: &'static str = "ContainerStatus"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "runtime.v1"
const PACKAGE: &'static str = "runtime.v1"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for ContainerStatus
impl PartialEq for ContainerStatus
Source§fn eq(&self, other: &ContainerStatus) -> bool
fn eq(&self, other: &ContainerStatus) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContainerStatus
Auto Trait Implementations§
impl Freeze for ContainerStatus
impl RefUnwindSafe for ContainerStatus
impl Send for ContainerStatus
impl Sync for ContainerStatus
impl Unpin for ContainerStatus
impl UnsafeUnpin for ContainerStatus
impl UnwindSafe for ContainerStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more