Struct oci_spec::runtime::ProcessBuilder
source · 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 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