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: String
ID 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: String
Image 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: String
Snapshotter specifies the snapshotter name used for rootfs
snapshot_key: String
SnapshotKey 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: String
Sandbox 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(&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 Container
impl Name for Container
source§const NAME: &'static str = "Container"
const NAME: &'static str = "Container"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.source§const PACKAGE: &'static str = "containerd.services.containers.v1"
const PACKAGE: &'static str = "containerd.services.containers.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.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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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