Struct pulumi_wasm_docker::DockerBuildBuilder
source · pub struct DockerBuildBuilder<___State = __DockerBuildBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__AddHosts, __Args, __BuilderVersion, __CacheFrom, __Context, __Dockerfile, __Network, __Platform, __Target> DockerBuildBuilder<(__AddHosts, __Args, __BuilderVersion, __CacheFrom, __Context, __Dockerfile, __Network, __Platform, __Target)>
impl<__AddHosts, __Args, __BuilderVersion, __CacheFrom, __Context, __Dockerfile, __Network, __Platform, __Target> DockerBuildBuilder<(__AddHosts, __Args, __BuilderVersion, __CacheFrom, __Context, __Dockerfile, __Network, __Platform, __Target)>
sourcepub fn build_struct(self) -> DockerBuildwhere
__AddHosts: IntoSet<Option<Box<Option<Vec<String>>>>, DockerBuildBuilder__add_hosts>,
__Args: IntoSet<Option<Box<Option<HashMap<String, String>>>>, DockerBuildBuilder__args>,
__BuilderVersion: IntoSet<Option<Box<Option<BuilderVersion>>>, DockerBuildBuilder__builder_version>,
__CacheFrom: IntoSet<Option<Box<Option<CacheFrom>>>, DockerBuildBuilder__cache_from>,
__Context: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__context>,
__Dockerfile: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__dockerfile>,
__Network: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__network>,
__Platform: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__platform>,
__Target: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__target>,
pub fn build_struct(self) -> DockerBuildwhere
__AddHosts: IntoSet<Option<Box<Option<Vec<String>>>>, DockerBuildBuilder__add_hosts>,
__Args: IntoSet<Option<Box<Option<HashMap<String, String>>>>, DockerBuildBuilder__args>,
__BuilderVersion: IntoSet<Option<Box<Option<BuilderVersion>>>, DockerBuildBuilder__builder_version>,
__CacheFrom: IntoSet<Option<Box<Option<CacheFrom>>>, DockerBuildBuilder__cache_from>,
__Context: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__context>,
__Dockerfile: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__dockerfile>,
__Network: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__network>,
__Platform: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__platform>,
__Target: IntoSet<Option<Box<Option<String>>>, DockerBuildBuilder__target>,
Finishes building and returns the requested object.
sourcepub fn maybe_add_hosts(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::AddHostswhere
__AddHosts: IsUnset,
pub fn maybe_add_hosts(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::AddHostswhere
__AddHosts: IsUnset,
Same as [Self::r#add_hosts
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn add_hosts(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::AddHostswhere
__AddHosts: IsUnset,
pub fn add_hosts(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::AddHostswhere
__AddHosts: IsUnset,
Custom host-to-IP mappings to use while building (format: “host:ip”)
sourcepub fn maybe_args(
self,
value: Option<impl Into<Box<Option<HashMap<String, String>>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Argswhere
__Args: IsUnset,
pub fn maybe_args(
self,
value: Option<impl Into<Box<Option<HashMap<String, String>>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Argswhere
__Args: IsUnset,
Same as [Self::r#args
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn args(
self,
value: impl Into<Box<Option<HashMap<String, String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Argswhere
__Args: IsUnset,
pub fn args(
self,
value: impl Into<Box<Option<HashMap<String, String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Argswhere
__Args: IsUnset,
An optional map of named build-time argument variables to set during the Docker build. This flag allows you to pass build-time variables that can be accessed like environment variables inside the RUN instruction.
sourcepub fn maybe_builder_version(
self,
value: Option<impl Into<Box<Option<BuilderVersion>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::BuilderVersionwhere
__BuilderVersion: IsUnset,
pub fn maybe_builder_version(
self,
value: Option<impl Into<Box<Option<BuilderVersion>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::BuilderVersionwhere
__BuilderVersion: IsUnset,
Same as [Self::r#builder_version
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn builder_version(
self,
value: impl Into<Box<Option<BuilderVersion>>>,
) -> <Self as __DockerBuildBuilderSetMember>::BuilderVersionwhere
__BuilderVersion: IsUnset,
pub fn builder_version(
self,
value: impl Into<Box<Option<BuilderVersion>>>,
) -> <Self as __DockerBuildBuilderSetMember>::BuilderVersionwhere
__BuilderVersion: IsUnset,
The version of the Docker builder.
sourcepub fn maybe_cache_from(
self,
value: Option<impl Into<Box<Option<CacheFrom>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::CacheFromwhere
__CacheFrom: IsUnset,
pub fn maybe_cache_from(
self,
value: Option<impl Into<Box<Option<CacheFrom>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::CacheFromwhere
__CacheFrom: IsUnset,
Same as [Self::r#cache_from
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn cache_from(
self,
value: impl Into<Box<Option<CacheFrom>>>,
) -> <Self as __DockerBuildBuilderSetMember>::CacheFromwhere
__CacheFrom: IsUnset,
pub fn cache_from(
self,
value: impl Into<Box<Option<CacheFrom>>>,
) -> <Self as __DockerBuildBuilderSetMember>::CacheFromwhere
__CacheFrom: IsUnset,
A list of image names to use as build cache. Images provided must have a cache manifest. Must provide authentication to cache registry.
sourcepub fn maybe_context(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Contextwhere
__Context: IsUnset,
pub fn maybe_context(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Contextwhere
__Context: IsUnset,
Same as [Self::r#context
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn context(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Contextwhere
__Context: IsUnset,
pub fn context(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Contextwhere
__Context: IsUnset,
The path to the build context to use.
sourcepub fn maybe_dockerfile(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Dockerfilewhere
__Dockerfile: IsUnset,
pub fn maybe_dockerfile(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Dockerfilewhere
__Dockerfile: IsUnset,
Same as [Self::r#dockerfile
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn dockerfile(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Dockerfilewhere
__Dockerfile: IsUnset,
pub fn dockerfile(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Dockerfilewhere
__Dockerfile: IsUnset,
The path to the Dockerfile to use.
sourcepub fn maybe_network(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Networkwhere
__Network: IsUnset,
pub fn maybe_network(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Networkwhere
__Network: IsUnset,
Same as [Self::r#network
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn network(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Networkwhere
__Network: IsUnset,
pub fn network(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Networkwhere
__Network: IsUnset,
Set the networking mode for RUN instructions
sourcepub fn maybe_platform(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Platformwhere
__Platform: IsUnset,
pub fn maybe_platform(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Platformwhere
__Platform: IsUnset,
Same as [Self::r#platform
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn platform(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Platformwhere
__Platform: IsUnset,
pub fn platform(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __DockerBuildBuilderSetMember>::Platformwhere
__Platform: IsUnset,
The architecture of the platform you want to build this image for, e.g. linux/arm64
.