pub struct ContainerStatus {Show 16 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>,
}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: StringReference to the image in use. For most runtimes, this should be an image ID
reason: StringBrief CamelCase string explaining why container is in its current state.
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.
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 · 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<'de> Deserialize<'de> for ContainerStatus
impl<'de> Deserialize<'de> for ContainerStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for ContainerStatus
impl Message for ContainerStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for ContainerStatus
impl PartialEq for ContainerStatus
Source§impl Serialize for ContainerStatus
impl Serialize for ContainerStatus
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 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request