pub struct RemoteImageArgsBuilder<___State = __RemoteImageArgsBuilderInitialState> { /* private fields */ }
Expand description

Use builder syntax to set the required parameters and finish by calling the method Self::build_struct().

Implementations§

source§

impl<__Build, __ForceRemove, __KeepLocally, __Name, __Platform, __PullTriggers, __Triggers> RemoteImageArgsBuilder<(__Build, __ForceRemove, __KeepLocally, __Name, __Platform, __PullTriggers, __Triggers)>

source

pub fn build_struct(self) -> RemoteImageArgs
where __Build: IntoSet<Option<Output<Option<RemoteImageBuild>>>, RemoteImageArgsBuilder__build>, __ForceRemove: IntoSet<Option<Output<Option<bool>>>, RemoteImageArgsBuilder__force_remove>, __KeepLocally: IntoSet<Option<Output<Option<bool>>>, RemoteImageArgsBuilder__keep_locally>, __Name: IntoSet<Output<String>, RemoteImageArgsBuilder__name>, __Platform: IntoSet<Option<Output<Option<String>>>, RemoteImageArgsBuilder__platform>, __PullTriggers: IntoSet<Option<Output<Option<Vec<String>>>>, RemoteImageArgsBuilder__pull_triggers>, __Triggers: IntoSet<Option<Output<Option<HashMap<String, String>>>>, RemoteImageArgsBuilder__triggers>,

Finishes building and returns the requested object.

source

pub fn maybe_build( self, value: Option<impl Into<Output<Option<RemoteImageBuild>>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::Build
where __Build: IsUnset,

Same as Self::build, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn build( self, value: impl Into<Output<Option<RemoteImageBuild>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::Build
where __Build: IsUnset,

Configuration to build an image. Please see docker build command reference too.

source

pub fn maybe_force_remove( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::ForceRemove
where __ForceRemove: IsUnset,

Same as Self::force_remove, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn force_remove( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::ForceRemove
where __ForceRemove: IsUnset,

Always remove intermediate containers

source

pub fn maybe_keep_locally( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::KeepLocally
where __KeepLocally: IsUnset,

Same as Self::keep_locally, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn keep_locally( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::KeepLocally
where __KeepLocally: IsUnset,

If true, then the Docker image won’t be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.

source

pub fn name( self, value: impl Into<Output<String>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::Name
where __Name: IsUnset,

type of ulimit, e.g. nofile

source

pub fn maybe_platform( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::Platform
where __Platform: IsUnset,

Same as Self::platform, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn platform( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::Platform
where __Platform: IsUnset,

Set platform if server is multi-platform capable

source

pub fn maybe_pull_triggers( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::PullTriggers
where __PullTriggers: IsUnset,

Same as Self::pull_triggers, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn pull_triggers( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::PullTriggers
where __PullTriggers: IsUnset,

List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the dockerregistryimage.

source

pub fn maybe_triggers( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::Triggers
where __Triggers: IsUnset,

Same as Self::triggers, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn triggers( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> <Self as __RemoteImageArgsBuilderSetMember>::Triggers
where __Triggers: IsUnset,

A map of arbitrary strings that, when changed, will force the docker.RemoteImage resource to be replaced. This can be used to rebuild an image when contents of source code folders change

Auto Trait Implementations§

§

impl<___State> Freeze for RemoteImageArgsBuilder<___State>
where ___State: Freeze,

§

impl<___State> RefUnwindSafe for RemoteImageArgsBuilder<___State>
where ___State: RefUnwindSafe,

§

impl<___State> Send for RemoteImageArgsBuilder<___State>
where ___State: Send,

§

impl<___State> Sync for RemoteImageArgsBuilder<___State>
where ___State: Sync,

§

impl<___State> Unpin for RemoteImageArgsBuilder<___State>
where ___State: Unpin,

§

impl<___State> UnwindSafe for RemoteImageArgsBuilder<___State>
where ___State: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.