pub struct IoK8sApiCoreV1FlexVolumeSource {
pub driver: String,
pub fs_type: Option<String>,
pub options: HashMap<String, String>,
pub read_only: Option<bool>,
pub secret_ref: Option<IoK8sApiCoreV1LocalObjectReference>,
}
Expand description
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
Fields§
§driver: String
Driver is the name of the driver to use for this volume.
fs_type: Option<String>
Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. “ext4”, “xfs”, “ntfs”. The default filesystem depends on FlexVolume script.
options: HashMap<String, String>
Optional: Extra command options if any.
read_only: Option<bool>
Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
secret_ref: Option<IoK8sApiCoreV1LocalObjectReference>
Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1FlexVolumeSource
impl Clone for IoK8sApiCoreV1FlexVolumeSource
Source§fn clone(&self) -> IoK8sApiCoreV1FlexVolumeSource
fn clone(&self) -> IoK8sApiCoreV1FlexVolumeSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for IoK8sApiCoreV1FlexVolumeSource
impl<'de> Deserialize<'de> for IoK8sApiCoreV1FlexVolumeSource
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&IoK8sApiCoreV1FlexVolumeSource> for IoK8sApiCoreV1FlexVolumeSource
impl From<&IoK8sApiCoreV1FlexVolumeSource> for IoK8sApiCoreV1FlexVolumeSource
Source§fn from(value: &IoK8sApiCoreV1FlexVolumeSource) -> Self
fn from(value: &IoK8sApiCoreV1FlexVolumeSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1FlexVolumeSource
impl RefUnwindSafe for IoK8sApiCoreV1FlexVolumeSource
impl Send for IoK8sApiCoreV1FlexVolumeSource
impl Sync for IoK8sApiCoreV1FlexVolumeSource
impl Unpin for IoK8sApiCoreV1FlexVolumeSource
impl UnwindSafe for IoK8sApiCoreV1FlexVolumeSource
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
Mutably borrows from an owned value. Read more