pub struct IoK8sApiCoreV1VolumeMountBuilder { /* private fields */ }Expand description
Builder for IoK8sApiCoreV1VolumeMount.
Implementations§
Source§impl IoK8sApiCoreV1VolumeMountBuilder
impl IoK8sApiCoreV1VolumeMountBuilder
Sourcepub fn mount_path(&mut self, value: String) -> &mut Self
pub fn mount_path(&mut self, value: String) -> &mut Self
Path within the container at which the volume should be mounted. Must not contain ‘:’.
Sourcepub fn mount_propagation(&mut self, value: Option<String>) -> &mut Self
pub fn mount_propagation(&mut self, value: Option<String>) -> &mut Self
mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.
Sourcepub fn read_only(&mut self, value: Option<bool>) -> &mut Self
pub fn read_only(&mut self, value: Option<bool>) -> &mut Self
Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
Sourcepub fn sub_path(&mut self, value: Option<String>) -> &mut Self
pub fn sub_path(&mut self, value: Option<String>) -> &mut Self
Path within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root).
Sourcepub fn sub_path_expr(&mut self, value: Option<String>) -> &mut Self
pub fn sub_path_expr(&mut self, value: Option<String>) -> &mut Self
Expanded path within the volume from which the container’s volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container’s environment. Defaults to “” (volume’s root). SubPathExpr and SubPath are mutually exclusive.
Sourcepub fn build(
&self,
) -> Result<IoK8sApiCoreV1VolumeMount, IoK8sApiCoreV1VolumeMountBuilderError>
pub fn build( &self, ) -> Result<IoK8sApiCoreV1VolumeMount, IoK8sApiCoreV1VolumeMountBuilderError>
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1VolumeMountBuilder
impl Clone for IoK8sApiCoreV1VolumeMountBuilder
Source§fn clone(&self) -> IoK8sApiCoreV1VolumeMountBuilder
fn clone(&self) -> IoK8sApiCoreV1VolumeMountBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more