Struct oci_spec::runtime::FeaturesBuilder
source · pub struct FeaturesBuilder { /* private fields */ }
Expand description
Builder for Features
.
Implementations§
source§impl FeaturesBuilder
impl FeaturesBuilder
sourcepub fn oci_version_min<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn oci_version_min<VALUE: Into<String>>(self, value: VALUE) -> Self
The minimum OCI Runtime Spec version recognized by the runtime, e.g., “1.0.0”.
sourcepub fn oci_version_max<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn oci_version_max<VALUE: Into<String>>(self, value: VALUE) -> Self
The maximum OCI Runtime Spec version recognized by the runtime, e.g., “1.0.2-dev”.
sourcepub fn hooks<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn hooks<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
The list of the recognized hook names, e.g., “createRuntime”. “None” means “unknown”, not “no support for any hook”.
sourcepub fn mount_options<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn mount_options<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
The list of the recognized mount options, e.g., “ro”. “None” means “unknown”, not “no support for any mount option”. This list does not contain filesystem-specific options passed to mount(2) syscall as (const void *).
sourcepub fn linux<VALUE: Into<LinuxFeature>>(self, value: VALUE) -> Self
pub fn linux<VALUE: Into<LinuxFeature>>(self, value: VALUE) -> Self
Information specific to Linux
sourcepub fn annotations<VALUE: Into<HashMap<String, String>>>(
self,
value: VALUE,
) -> Self
pub fn annotations<VALUE: Into<HashMap<String, String>>>( self, value: VALUE, ) -> Self
Implementation-specific annotation strings, such as the implementation version, and third-party extensions.
sourcepub fn potentially_unsafe_config_annotations<VALUE: Into<Vec<String>>>(
self,
value: VALUE,
) -> Self
pub fn potentially_unsafe_config_annotations<VALUE: Into<Vec<String>>>( self, value: VALUE, ) -> Self
The list of the potential unsafe annotations
that may appear in config.json
.
A value that ends with “.” is interpreted as a prefix of annotations.