Struct google_api_proto::google::devtools::artifactregistry::v1::DockerImage
source · pub struct DockerImage {
pub name: String,
pub uri: String,
pub tags: Vec<String>,
pub image_size_bytes: i64,
pub upload_time: Option<Timestamp>,
pub media_type: String,
pub build_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
}
Expand description
DockerImage represents a docker artifact. The following fields are returned as untyped metadata in the Version resource, using camelcase keys (i.e. metadata.imageSizeBytes):
- imageSizeBytes
- mediaType
- buildTime
Fields§
§name: String
Required. registry_location, project_id, repository_name and image id forms
a unique image
name:projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>
.
For example,
“projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf”,
where “us-west4” is the registry_location, “test-project” is the
project_id, “test-repo” is the repository_name and
“nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf”
is the image’s digest.
uri: String
Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
Tags attached to this image.
image_size_bytes: i64
Calculated size of the image. This field is returned as the ‘metadata.imageSizeBytes’ field in the Version resource.
upload_time: Option<Timestamp>
Time the image was uploaded.
media_type: String
Media type of this image, e.g. “application/vnd.docker.distribution.manifest.v2+json”. This field is returned as the ‘metadata.mediaType’ field in the Version resource.
build_time: Option<Timestamp>
The time this image was built. This field is returned as the ‘metadata.buildTime’ field in the Version resource. The build time is returned to the client as an RFC 3339 string, which can be easily used with the JavaScript Date constructor.
update_time: Option<Timestamp>
Output only. The time when the docker image was last updated.
Trait Implementations§
source§impl Clone for DockerImage
impl Clone for DockerImage
source§fn clone(&self) -> DockerImage
fn clone(&self) -> DockerImage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DockerImage
impl Debug for DockerImage
source§impl Default for DockerImage
impl Default for DockerImage
source§impl Message for DockerImage
impl Message for DockerImage
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 PartialEq for DockerImage
impl PartialEq for DockerImage
source§fn eq(&self, other: &DockerImage) -> bool
fn eq(&self, other: &DockerImage) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DockerImage
Auto Trait Implementations§
impl Freeze for DockerImage
impl RefUnwindSafe for DockerImage
impl Send for DockerImage
impl Sync for DockerImage
impl Unpin for DockerImage
impl UnwindSafe for DockerImage
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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