pub struct ProcessBuilder { /* private fields */ }
Expand description
Builder for Process
.
Implementations§
Source§impl ProcessBuilder
impl ProcessBuilder
Sourcepub fn terminal<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn terminal<VALUE: Into<bool>>(self, value: VALUE) -> Self
Terminal creates an interactive terminal for the container.
Sourcepub fn console_size<VALUE: Into<Box>>(self, value: VALUE) -> Self
pub fn console_size<VALUE: Into<Box>>(self, value: VALUE) -> Self
ConsoleSize specifies the size of the console.
Sourcepub fn user<VALUE: Into<User>>(self, value: VALUE) -> Self
pub fn user<VALUE: Into<User>>(self, value: VALUE) -> Self
User specifies user information for the process.
Sourcepub fn args<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn args<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
Args specifies the binary and arguments for the application to execute.
Sourcepub fn command_line<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn command_line<VALUE: Into<String>>(self, value: VALUE) -> Self
CommandLine specifies the full command line for the application to execute on Windows.
Sourcepub fn env<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn env<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
Env populates the process environment for the process.
Sourcepub fn cwd<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
pub fn cwd<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
Cwd is the current working directory for the process and must be relative to the container’s root.
Sourcepub fn capabilities<VALUE: Into<LinuxCapabilities>>(self, value: VALUE) -> Self
pub fn capabilities<VALUE: Into<LinuxCapabilities>>(self, value: VALUE) -> Self
Capabilities are Linux capabilities that are kept for the process.
Sourcepub fn rlimits<VALUE: Into<Vec<PosixRlimit>>>(self, value: VALUE) -> Self
pub fn rlimits<VALUE: Into<Vec<PosixRlimit>>>(self, value: VALUE) -> Self
Rlimits specifies rlimit options to apply to the process.
Sourcepub fn no_new_privileges<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn no_new_privileges<VALUE: Into<bool>>(self, value: VALUE) -> Self
NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
Sourcepub fn apparmor_profile<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn apparmor_profile<VALUE: Into<String>>(self, value: VALUE) -> Self
ApparmorProfile specifies the apparmor profile for the container.
Sourcepub fn oom_score_adj<VALUE: Into<i32>>(self, value: VALUE) -> Self
pub fn oom_score_adj<VALUE: Into<i32>>(self, value: VALUE) -> Self
Specify an oom_score_adj for the container.
Sourcepub fn selinux_label<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn selinux_label<VALUE: Into<String>>(self, value: VALUE) -> Self
SelinuxLabel specifies the selinux context that the container process is run as.
Sourcepub fn io_priority<VALUE: Into<LinuxIOPriority>>(self, value: VALUE) -> Self
pub fn io_priority<VALUE: Into<LinuxIOPriority>>(self, value: VALUE) -> Self
IOPriority contains the I/O priority settings for the cgroup.
Sourcepub fn scheduler<VALUE: Into<Scheduler>>(self, value: VALUE) -> Self
pub fn scheduler<VALUE: Into<Scheduler>>(self, value: VALUE) -> Self
Scheduler specifies the scheduling attributes for a process
Sourcepub fn exec_cpu_affinity<VALUE: Into<ExecCPUAffinity>>(
self,
value: VALUE,
) -> Self
pub fn exec_cpu_affinity<VALUE: Into<ExecCPUAffinity>>( self, value: VALUE, ) -> Self
ExecCPUAffinity specifies the cpu affinity for a process