pub struct ContainerBuildOptsBuilder<'a> { /* private fields */ }Expand description
Builder for ContainerBuildOpts.
Implementations§
Source§impl<'a> ContainerBuildOptsBuilder<'a>
impl<'a> ContainerBuildOptsBuilder<'a>
Sourcepub fn build_args<VALUE: Into<Vec<BuildArg>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn build_args<VALUE: Into<Vec<BuildArg>>>( &mut self, value: VALUE, ) -> &mut Self
Additional build arguments.
Sourcepub fn dockerfile<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn dockerfile<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Path to the Dockerfile to use.
Sourcepub fn secrets<VALUE: Into<Vec<SecretId>>>(&mut self, value: VALUE) -> &mut Self
pub fn secrets<VALUE: Into<Vec<SecretId>>>(&mut self, value: VALUE) -> &mut Self
Secrets to pass to the build. They will be mounted at /run/secrets/[secret-name] in the build container They can be accessed in the Dockerfile using the “secret” mount type and mount path /run/secrets/[secret-name], e.g. RUN –mount=type=secret,id=my-secret curl [http://example.com?token=$(cat /run/secrets/my-secret)](http://example.com?token=$(cat /run/secrets/my-secret))
Sourcepub fn target<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn target<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Target build stage to build.
Sourcepub fn build(
&self,
) -> Result<ContainerBuildOpts<'a>, ContainerBuildOptsBuilderError>
pub fn build( &self, ) -> Result<ContainerBuildOpts<'a>, ContainerBuildOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for ContainerBuildOptsBuilder<'a>
impl<'a> Clone for ContainerBuildOptsBuilder<'a>
Source§fn clone(&self) -> ContainerBuildOptsBuilder<'a>
fn clone(&self) -> ContainerBuildOptsBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ContainerBuildOptsBuilder<'a>
impl<'a> RefUnwindSafe for ContainerBuildOptsBuilder<'a>
impl<'a> Send for ContainerBuildOptsBuilder<'a>
impl<'a> Sync for ContainerBuildOptsBuilder<'a>
impl<'a> Unpin for ContainerBuildOptsBuilder<'a>
impl<'a> UnwindSafe for ContainerBuildOptsBuilder<'a>
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
Mutably borrows from an owned value. Read more