Struct dagger_sdk::ContainerExecOptsBuilder
source · pub struct ContainerExecOptsBuilder<'a> { /* private fields */ }Expand description
Builder for ContainerExecOpts.
Implementations§
source§impl<'a> ContainerExecOptsBuilder<'a>
impl<'a> ContainerExecOptsBuilder<'a>
sourcepub fn args<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
pub fn args<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
Command to run instead of the container’s default command (e.g., [“run”, “main.go”]).
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
Provide dagger access to the executed command. Do not use this option unless you trust the command being executed. The command being executed WILL BE GRANTED FULL ACCESS TO YOUR HOST FILESYSTEM.
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 (e.g., “/tmp/stderr”).
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 (e.g., “/tmp/stdout”).
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 before closing (e.g., “Hello world”).
sourcepub fn build(
&self
) -> Result<ContainerExecOpts<'a>, ContainerExecOptsBuilderError>
pub fn build( &self ) -> Result<ContainerExecOpts<'a>, ContainerExecOptsBuilderError>
Trait Implementations§
source§impl<'a> Clone for ContainerExecOptsBuilder<'a>
impl<'a> Clone for ContainerExecOptsBuilder<'a>
source§fn clone(&self) -> ContainerExecOptsBuilder<'a>
fn clone(&self) -> ContainerExecOptsBuilder<'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 more