pub struct FlexVolumeSource {
pub driver: Option<String>,
pub fs_type: Option<String>,
pub options: Option<HashMap<String, String>>,
pub read_only: Option<bool>,
pub secret_ref: Option<LocalObjectReference>,
}Expand description
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
Fields§
§driver: Option<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. +optional
options: Option<HashMap<String, String>>Optional: Extra command options if any. +optional
read_only: Option<bool>Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional
secret_ref: Option<LocalObjectReference>Implementations§
Source§impl FlexVolumeSource
impl FlexVolumeSource
pub fn new() -> FlexVolumeSource
Trait Implementations§
Source§impl Clone for FlexVolumeSource
impl Clone for FlexVolumeSource
Source§fn clone(&self) -> FlexVolumeSource
fn clone(&self) -> FlexVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FlexVolumeSource
impl Debug for FlexVolumeSource
Source§impl<'de> Deserialize<'de> for FlexVolumeSource
impl<'de> Deserialize<'de> for FlexVolumeSource
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>,
Source§impl FromStr for FlexVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a FlexVolumeSource value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for FlexVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a FlexVolumeSource value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for FlexVolumeSource
impl PartialEq for FlexVolumeSource
Source§impl Serialize for FlexVolumeSource
impl Serialize for FlexVolumeSource
Source§impl ToString for FlexVolumeSource
Converts the FlexVolumeSource value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for FlexVolumeSource
Converts the FlexVolumeSource value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer