Struct containerd_client::services::v1::Container
source · pub struct Container {
pub id: String,
pub labels: HashMap<String, String>,
pub image: String,
pub runtime: Option<Runtime>,
pub spec: Option<Any>,
pub snapshotter: String,
pub snapshot_key: String,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
pub extensions: HashMap<String, Any>,
pub sandbox: String,
}Fields§
§id: StringID is the user-specified identifier.
This field may not be updated.
labels: HashMap<String, String>Labels provides an area to include arbitrary data on containers.
The combined size of a key/value pair cannot exceed 4096 bytes.
Note that to add a new value to this field, read the existing set and include the entire result in the update call.
image: StringImage contains the reference of the image used to build the specification and snapshots for running this container.
If this field is updated, the spec and rootfs needed to updated, as well.
runtime: Option<Runtime>Runtime specifies which runtime to use for executing this container.
spec: Option<Any>Spec to be used when creating the container. This is runtime specific.
snapshotter: StringSnapshotter specifies the snapshotter name used for rootfs
snapshot_key: StringSnapshotKey specifies the snapshot key to use for the container’s root filesystem. When starting a task from this container, a caller should look up the mounts from the snapshot service and include those on the task create request.
Snapshots referenced in this field will not be garbage collected.
This field is set to empty when the rootfs is not a snapshot.
This field may be updated.
created_at: Option<Timestamp>CreatedAt is the time the container was first created.
updated_at: Option<Timestamp>UpdatedAt is the last time the container was mutated.
extensions: HashMap<String, Any>Extensions allow clients to provide zero or more blobs that are directly associated with the container. One may provide protobuf, json, or other encoding formats. The primary use of this is to further decorate the container object with fields that may be specific to a client integration.
The key portion of this map should identify a “name” for the extension that should be unique against other extensions. When updating extension data, one should only update the specified extension using field paths to select a specific map key.
sandbox: StringSandbox ID this container belongs to.
Trait Implementations§
source§impl Message for Container
impl Message for Container
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 Container
impl PartialEq for Container
impl StructuralPartialEq for Container
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§
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> 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