pub struct ContainerWithExecOptsBuilder<'a> { /* private fields */ }
Expand description
Builder for ContainerWithExecOpts
.
Implementations§
Source§impl<'a> ContainerWithExecOptsBuilder<'a>
impl<'a> ContainerWithExecOptsBuilder<'a>
Sourcepub fn expand<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn expand<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Replace “${VAR}” or “$VAR” in the args according to the current environment variables defined in the container (e.g. “/$VAR/foo”).
Sourcepub fn expect<VALUE: Into<ReturnType>>(&mut self, value: VALUE) -> &mut Self
pub fn expect<VALUE: Into<ReturnType>>(&mut self, value: VALUE) -> &mut Self
Exit codes this command is allowed to exit with without error
Sourcepub fn experimental_privileged_nesting<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn experimental_privileged_nesting<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Provides Dagger access to the executed command.
Sourcepub fn insecure_root_capabilities<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn insecure_root_capabilities<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Execute the command with all root capabilities. Like –privileged in Docker DANGER: this grants the command full access to the host system. Only use when 1) you trust the command being executed and 2) you specifically need this level of access.
Sourcepub fn no_init<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn no_init<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Skip the automatic init process injected into containers by default. Only use this if you specifically need the command to be pid 1 in the container. Otherwise it may result in unexpected behavior. If you’re not sure, you don’t need this.
Sourcepub fn redirect_stderr<VALUE: Into<&'a str>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn redirect_stderr<VALUE: Into<&'a str>>( &mut self, value: VALUE, ) -> &mut Self
Redirect the command’s standard error to a file in the container. Example: “./stderr.txt”
Sourcepub fn redirect_stdin<VALUE: Into<&'a str>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn redirect_stdin<VALUE: Into<&'a str>>( &mut self, value: VALUE, ) -> &mut Self
Redirect the command’s standard input from a file in the container. Example: “./stdin.txt”
Sourcepub fn redirect_stdout<VALUE: Into<&'a str>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn redirect_stdout<VALUE: Into<&'a str>>( &mut self, value: VALUE, ) -> &mut Self
Redirect the command’s standard output to a file in the container. Example: “./stdout.txt”
Sourcepub fn stdin<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn stdin<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Content to write to the command’s standard input. Example: “Hello world”)
Sourcepub fn use_entrypoint<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn use_entrypoint<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Apply the OCI entrypoint, if present, by prepending it to the args. Ignored by default.
Sourcepub fn build(
&self,
) -> Result<ContainerWithExecOpts<'a>, ContainerWithExecOptsBuilderError>
pub fn build( &self, ) -> Result<ContainerWithExecOpts<'a>, ContainerWithExecOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for ContainerWithExecOptsBuilder<'a>
impl<'a> Clone for ContainerWithExecOptsBuilder<'a>
Source§fn clone(&self) -> ContainerWithExecOptsBuilder<'a>
fn clone(&self) -> ContainerWithExecOptsBuilder<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more