pub struct LinuxBuilder { /* private fields */ }
Expand description
Builder for Linux
.
Implementations§
Source§impl LinuxBuilder
impl LinuxBuilder
Sourcepub fn uid_mappings<VALUE: Into<Vec<LinuxIDMapping>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn uid_mappings<VALUE: Into<Vec<LinuxIDMapping>>>( &mut self, value: VALUE, ) -> &mut Self
UIDMapping specifies user mappings for supporting user namespaces.
Sourcepub fn gid_mappings<VALUE: Into<Vec<LinuxIDMapping>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn gid_mappings<VALUE: Into<Vec<LinuxIDMapping>>>( &mut self, value: VALUE, ) -> &mut Self
GIDMapping specifies group mappings for supporting user namespaces.
Sourcepub fn sysctl<VALUE: Into<HashMap<String, String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn sysctl<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
Sysctl are a set of key value pairs that are set for the container on start
Sourcepub fn resources<VALUE: Into<Option<LinuxResources>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn resources<VALUE: Into<Option<LinuxResources>>>( &mut self, value: VALUE, ) -> &mut Self
Resources contain cgroup information for handling resource constraints for the container
Sourcepub fn cgroups_path<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cgroups_path<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
CgroupsPath specifies the path to cgroups that are created and/or joined by the container. The path is expected to be relative to the cgroups mountpoint. If resources are specified, the cgroups at CgroupsPath will be updated based on resources.
Sourcepub fn namespaces<VALUE: Into<Vec<LinuxNamespace>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn namespaces<VALUE: Into<Vec<LinuxNamespace>>>( &mut self, value: VALUE, ) -> &mut Self
Namespaces contains the namespaces that are created and/or joined by the container
Sourcepub fn devices<VALUE: Into<Vec<LinuxDevice>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn devices<VALUE: Into<Vec<LinuxDevice>>>( &mut self, value: VALUE, ) -> &mut Self
Devices are a list of device nodes that are created for the container
Sourcepub fn seccomp<VALUE: Into<Option<LinuxSeccomp>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn seccomp<VALUE: Into<Option<LinuxSeccomp>>>( &mut self, value: VALUE, ) -> &mut Self
Seccomp specifies the seccomp security settings for the container.
Sourcepub fn rootfs_propagation<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn rootfs_propagation<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
RootfsPropagation is the rootfs mount propagation mode for the container.
Sourcepub fn masked_paths<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn masked_paths<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
MaskedPaths masks over the provided paths inside the container.
Sourcepub fn readonly_paths<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn readonly_paths<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
ReadonlyPaths sets the provided paths as RO inside the container.
Sourcepub fn mount_label<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn mount_label<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
MountLabel specifies the selinux context for the mounts in the container.
Sourcepub fn intel_rdt<VALUE: Into<Option<LinuxIntelRdt>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn intel_rdt<VALUE: Into<Option<LinuxIntelRdt>>>( &mut self, value: VALUE, ) -> &mut Self
IntelRdt contains Intel Resource Director Technology (RDT) information for handling resource constraints (e.g., L3 cache, memory bandwidth) for the container
Sourcepub fn personality<VALUE: Into<Option<LinuxPersonality>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn personality<VALUE: Into<Option<LinuxPersonality>>>( &mut self, value: VALUE, ) -> &mut Self
Personality contains configuration for the Linux personality syscall
Trait Implementations§
Source§impl Clone for LinuxBuilder
impl Clone for LinuxBuilder
Source§fn clone(&self) -> LinuxBuilder
fn clone(&self) -> LinuxBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more