pub struct Container {
pub id: u64,
pub name: String,
pub image: String,
pub state: ContainerState,
pub pod_sandbox_id: u64,
pub command: Vec<String>,
pub args: Vec<String>,
pub env: Vec<String>,
pub exit_code: i32,
pub started_tick: u64,
pub finished_tick: u64,
pub labels: BTreeMap<String, String>,
}Expand description
A container running within a pod sandbox.
Fields§
§id: u64Unique container identifier.
name: StringHuman-readable name.
image: StringContainer image reference.
state: ContainerStateCurrent state.
pod_sandbox_id: u64Pod sandbox this container belongs to.
command: Vec<String>Command to execute.
args: Vec<String>Command arguments.
env: Vec<String>Environment variables (key=value).
exit_code: i32Exit code (set when state is Exited).
started_tick: u64Tick when started.
finished_tick: u64Tick when finished.
labels: BTreeMap<String, String>Labels.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)