#[non_exhaustive]pub struct RegisterContainerImageInput {
pub service_name: Option<String>,
pub label: Option<String>,
pub digest: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.service_name: Option<String>
The name of the container service for which to register a container image.
label: Option<String>
The label for the container image when it's registered to the container service.
Use a descriptive label that you can use to track the different versions of your registered container images.
Use the GetContainerImages
action to return the container images registered to a Lightsail container service. The label is the
portion of the following image name example:
-
:container-service-1.
.1
If the name of your container service is mycontainerservice
, and the label that you specify is mystaticwebsite
, then the name of the registered container image will be :mycontainerservice.mystaticwebsite.1
.
The number at the end of these image name examples represents the version of the registered container image. If you push and register another container image to the same Lightsail container service, with the same label, then the version number for the new registered container image will be 2
. If you push and register another container image, the version number will be 3
, and so on.
digest: Option<String>
The digest of the container image to be registered.
Implementations§
source§impl RegisterContainerImageInput
impl RegisterContainerImageInput
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the container service for which to register a container image.
sourcepub fn label(&self) -> Option<&str>
pub fn label(&self) -> Option<&str>
The label for the container image when it's registered to the container service.
Use a descriptive label that you can use to track the different versions of your registered container images.
Use the GetContainerImages
action to return the container images registered to a Lightsail container service. The label is the
portion of the following image name example:
-
:container-service-1.
.1
If the name of your container service is mycontainerservice
, and the label that you specify is mystaticwebsite
, then the name of the registered container image will be :mycontainerservice.mystaticwebsite.1
.
The number at the end of these image name examples represents the version of the registered container image. If you push and register another container image to the same Lightsail container service, with the same label, then the version number for the new registered container image will be 2
. If you push and register another container image, the version number will be 3
, and so on.
source§impl RegisterContainerImageInput
impl RegisterContainerImageInput
sourcepub fn builder() -> RegisterContainerImageInputBuilder
pub fn builder() -> RegisterContainerImageInputBuilder
Creates a new builder-style object to manufacture RegisterContainerImageInput
.
Trait Implementations§
source§impl Clone for RegisterContainerImageInput
impl Clone for RegisterContainerImageInput
source§fn clone(&self) -> RegisterContainerImageInput
fn clone(&self) -> RegisterContainerImageInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegisterContainerImageInput
impl Debug for RegisterContainerImageInput
source§impl PartialEq for RegisterContainerImageInput
impl PartialEq for RegisterContainerImageInput
source§fn eq(&self, other: &RegisterContainerImageInput) -> bool
fn eq(&self, other: &RegisterContainerImageInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegisterContainerImageInput
Auto Trait Implementations§
impl Freeze for RegisterContainerImageInput
impl RefUnwindSafe for RegisterContainerImageInput
impl Send for RegisterContainerImageInput
impl Sync for RegisterContainerImageInput
impl Unpin for RegisterContainerImageInput
impl UnwindSafe for RegisterContainerImageInput
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more