Struct dagger_sdk::ContainerWithExecOptsBuilder
source · pub struct ContainerWithExecOptsBuilder<'a> { /* private fields */ }Expand description
Builder for ContainerWithExecOpts.
Implementations§
source§impl<'a> ContainerWithExecOptsBuilder<'a>
impl<'a> ContainerWithExecOptsBuilder<'a>
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. 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 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. This is similar to running a command with “sudo” or executing “docker run” with the “–privileged” flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
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 skip_entrypoint<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn skip_entrypoint<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If the container has an entrypoint, ignore it for args rather than using it to wrap them.
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<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 moreAuto Trait Implementations§
impl<'a> Freeze for ContainerWithExecOptsBuilder<'a>
impl<'a> RefUnwindSafe for ContainerWithExecOptsBuilder<'a>
impl<'a> Send for ContainerWithExecOptsBuilder<'a>
impl<'a> Sync for ContainerWithExecOptsBuilder<'a>
impl<'a> Unpin for ContainerWithExecOptsBuilder<'a>
impl<'a> UnwindSafe for ContainerWithExecOptsBuilder<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)