pub struct Linux { /* private fields */ }
Expand description
Linux contains platform-specific configuration for Linux based containers.
Implementations§
Source§impl Linux
impl Linux
Sourcepub fn uid_mappings(&self) -> &Option<Vec<LinuxIdMapping>>
pub fn uid_mappings(&self) -> &Option<Vec<LinuxIdMapping>>
UIDMappings specifies user mappings for supporting user namespaces.
Sourcepub fn gid_mappings(&self) -> &Option<Vec<LinuxIdMapping>>
pub fn gid_mappings(&self) -> &Option<Vec<LinuxIdMapping>>
GIDMappings specifies group mappings for supporting user namespaces.
Sourcepub fn sysctl(&self) -> &Option<HashMap<String, String>>
pub fn sysctl(&self) -> &Option<HashMap<String, String>>
Sysctl are a set of key value pairs that are set for the container on start.
Sourcepub fn resources(&self) -> &Option<LinuxResources>
pub fn resources(&self) -> &Option<LinuxResources>
Resources contain cgroup information for handling resource constraints for the container.
Sourcepub fn cgroups_path(&self) -> &Option<PathBuf>
pub fn cgroups_path(&self) -> &Option<PathBuf>
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(&self) -> &Option<Vec<LinuxNamespace>>
pub fn namespaces(&self) -> &Option<Vec<LinuxNamespace>>
Namespaces contains the namespaces that are created and/or joined by the container.
Sourcepub fn devices(&self) -> &Option<Vec<LinuxDevice>>
pub fn devices(&self) -> &Option<Vec<LinuxDevice>>
Devices are a list of device nodes that are created for the container.
Sourcepub fn seccomp(&self) -> &Option<LinuxSeccomp>
pub fn seccomp(&self) -> &Option<LinuxSeccomp>
Seccomp specifies the seccomp security settings for the container.
Sourcepub fn rootfs_propagation(&self) -> &Option<String>
pub fn rootfs_propagation(&self) -> &Option<String>
RootfsPropagation is the rootfs mount propagation mode for the container.
Sourcepub fn masked_paths(&self) -> &Option<Vec<String>>
pub fn masked_paths(&self) -> &Option<Vec<String>>
MaskedPaths masks over the provided paths inside the container.
Sourcepub fn readonly_paths(&self) -> &Option<Vec<String>>
pub fn readonly_paths(&self) -> &Option<Vec<String>>
ReadonlyPaths sets the provided paths as RO inside the container.
Sourcepub fn mount_label(&self) -> &Option<String>
pub fn mount_label(&self) -> &Option<String>
MountLabel specifies the selinux context for the mounts in the container.
Sourcepub fn intel_rdt(&self) -> &Option<LinuxIntelRdt>
pub fn intel_rdt(&self) -> &Option<LinuxIntelRdt>
IntelRdt contains Intel Resource Director Technology (RDT) information for handling resource constraints and monitoring metrics (e.g., L3 cache, memory bandwidth) for the container.
Sourcepub fn personality(&self) -> &Option<LinuxPersonality>
pub fn personality(&self) -> &Option<LinuxPersonality>
Personality contains configuration for the Linux personality syscall.
Source§impl Linux
impl Linux
Sourcepub fn uid_mappings_mut(&mut self) -> &mut Option<Vec<LinuxIdMapping>>
pub fn uid_mappings_mut(&mut self) -> &mut Option<Vec<LinuxIdMapping>>
UIDMappings specifies user mappings for supporting user namespaces.
Sourcepub fn gid_mappings_mut(&mut self) -> &mut Option<Vec<LinuxIdMapping>>
pub fn gid_mappings_mut(&mut self) -> &mut Option<Vec<LinuxIdMapping>>
GIDMappings specifies group mappings for supporting user namespaces.
Sourcepub fn sysctl_mut(&mut self) -> &mut Option<HashMap<String, String>>
pub fn sysctl_mut(&mut self) -> &mut Option<HashMap<String, String>>
Sysctl are a set of key value pairs that are set for the container on start.
Sourcepub fn resources_mut(&mut self) -> &mut Option<LinuxResources>
pub fn resources_mut(&mut self) -> &mut Option<LinuxResources>
Resources contain cgroup information for handling resource constraints for the container.
Sourcepub fn cgroups_path_mut(&mut self) -> &mut Option<PathBuf>
pub fn cgroups_path_mut(&mut self) -> &mut Option<PathBuf>
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_mut(&mut self) -> &mut Option<Vec<LinuxNamespace>>
pub fn namespaces_mut(&mut self) -> &mut Option<Vec<LinuxNamespace>>
Namespaces contains the namespaces that are created and/or joined by the container.
Sourcepub fn devices_mut(&mut self) -> &mut Option<Vec<LinuxDevice>>
pub fn devices_mut(&mut self) -> &mut Option<Vec<LinuxDevice>>
Devices are a list of device nodes that are created for the container.
Sourcepub fn seccomp_mut(&mut self) -> &mut Option<LinuxSeccomp>
pub fn seccomp_mut(&mut self) -> &mut Option<LinuxSeccomp>
Seccomp specifies the seccomp security settings for the container.
Sourcepub fn rootfs_propagation_mut(&mut self) -> &mut Option<String>
pub fn rootfs_propagation_mut(&mut self) -> &mut Option<String>
RootfsPropagation is the rootfs mount propagation mode for the container.
Sourcepub fn masked_paths_mut(&mut self) -> &mut Option<Vec<String>>
pub fn masked_paths_mut(&mut self) -> &mut Option<Vec<String>>
MaskedPaths masks over the provided paths inside the container.
Sourcepub fn readonly_paths_mut(&mut self) -> &mut Option<Vec<String>>
pub fn readonly_paths_mut(&mut self) -> &mut Option<Vec<String>>
ReadonlyPaths sets the provided paths as RO inside the container.
Sourcepub fn mount_label_mut(&mut self) -> &mut Option<String>
pub fn mount_label_mut(&mut self) -> &mut Option<String>
MountLabel specifies the selinux context for the mounts in the container.
Sourcepub fn intel_rdt_mut(&mut self) -> &mut Option<LinuxIntelRdt>
pub fn intel_rdt_mut(&mut self) -> &mut Option<LinuxIntelRdt>
IntelRdt contains Intel Resource Director Technology (RDT) information for handling resource constraints and monitoring metrics (e.g., L3 cache, memory bandwidth) for the container.
Sourcepub fn personality_mut(&mut self) -> &mut Option<LinuxPersonality>
pub fn personality_mut(&mut self) -> &mut Option<LinuxPersonality>
Personality contains configuration for the Linux personality syscall.
Source§impl Linux
impl Linux
Sourcepub fn set_uid_mappings(
&mut self,
val: Option<Vec<LinuxIdMapping>>,
) -> &mut Self
pub fn set_uid_mappings( &mut self, val: Option<Vec<LinuxIdMapping>>, ) -> &mut Self
UIDMappings specifies user mappings for supporting user namespaces.
Sourcepub fn set_gid_mappings(
&mut self,
val: Option<Vec<LinuxIdMapping>>,
) -> &mut Self
pub fn set_gid_mappings( &mut self, val: Option<Vec<LinuxIdMapping>>, ) -> &mut Self
GIDMappings specifies group mappings for supporting user namespaces.
Sourcepub fn set_sysctl(&mut self, val: Option<HashMap<String, String>>) -> &mut Self
pub fn set_sysctl(&mut self, val: Option<HashMap<String, String>>) -> &mut Self
Sysctl are a set of key value pairs that are set for the container on start.
Sourcepub fn set_resources(&mut self, val: Option<LinuxResources>) -> &mut Self
pub fn set_resources(&mut self, val: Option<LinuxResources>) -> &mut Self
Resources contain cgroup information for handling resource constraints for the container.
Sourcepub fn set_cgroups_path(&mut self, val: Option<PathBuf>) -> &mut Self
pub fn set_cgroups_path(&mut self, val: Option<PathBuf>) -> &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 set_namespaces(&mut self, val: Option<Vec<LinuxNamespace>>) -> &mut Self
pub fn set_namespaces(&mut self, val: Option<Vec<LinuxNamespace>>) -> &mut Self
Namespaces contains the namespaces that are created and/or joined by the container.
Sourcepub fn set_devices(&mut self, val: Option<Vec<LinuxDevice>>) -> &mut Self
pub fn set_devices(&mut self, val: Option<Vec<LinuxDevice>>) -> &mut Self
Devices are a list of device nodes that are created for the container.
Sourcepub fn set_seccomp(&mut self, val: Option<LinuxSeccomp>) -> &mut Self
pub fn set_seccomp(&mut self, val: Option<LinuxSeccomp>) -> &mut Self
Seccomp specifies the seccomp security settings for the container.
Sourcepub fn set_rootfs_propagation(&mut self, val: Option<String>) -> &mut Self
pub fn set_rootfs_propagation(&mut self, val: Option<String>) -> &mut Self
RootfsPropagation is the rootfs mount propagation mode for the container.
Sourcepub fn set_masked_paths(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_masked_paths(&mut self, val: Option<Vec<String>>) -> &mut Self
MaskedPaths masks over the provided paths inside the container.
Sourcepub fn set_readonly_paths(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_readonly_paths(&mut self, val: Option<Vec<String>>) -> &mut Self
ReadonlyPaths sets the provided paths as RO inside the container.
Sourcepub fn set_mount_label(&mut self, val: Option<String>) -> &mut Self
pub fn set_mount_label(&mut self, val: Option<String>) -> &mut Self
MountLabel specifies the selinux context for the mounts in the container.
Sourcepub fn set_intel_rdt(&mut self, val: Option<LinuxIntelRdt>) -> &mut Self
pub fn set_intel_rdt(&mut self, val: Option<LinuxIntelRdt>) -> &mut Self
IntelRdt contains Intel Resource Director Technology (RDT) information for handling resource constraints and monitoring metrics (e.g., L3 cache, memory bandwidth) for the container.
Sourcepub fn set_personality(&mut self, val: Option<LinuxPersonality>) -> &mut Self
pub fn set_personality(&mut self, val: Option<LinuxPersonality>) -> &mut Self
Personality contains configuration for the Linux personality syscall.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Linux
impl<'de> Deserialize<'de> for Linux
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Linux
impl StructuralPartialEq for Linux
Auto Trait Implementations§
impl Freeze for Linux
impl RefUnwindSafe for Linux
impl Send for Linux
impl Sync for Linux
impl Unpin for Linux
impl UnwindSafe for Linux
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)