pub struct CsiVolumeSource {
pub driver: Option<String>,
pub fs_type: Option<String>,
pub node_publish_secret_ref: Option<LocalObjectReference>,
pub read_only: Option<bool>,
pub volume_attributes: Option<HashMap<String, String>>,
}Expand description
Represents a source location of a volume to mount, managed by an external CSI driver
Fields§
§driver: Option<String>Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
fs_type: Option<String>Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional
node_publish_secret_ref: Option<LocalObjectReference>§read_only: Option<bool>Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional
volume_attributes: Option<HashMap<String, String>>VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver’s documentation for supported values. +optional
Implementations§
Source§impl CsiVolumeSource
impl CsiVolumeSource
pub fn new() -> CsiVolumeSource
Trait Implementations§
Source§impl Clone for CsiVolumeSource
impl Clone for CsiVolumeSource
Source§fn clone(&self) -> CsiVolumeSource
fn clone(&self) -> CsiVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CsiVolumeSource
impl Debug for CsiVolumeSource
Source§impl<'de> Deserialize<'de> for CsiVolumeSource
impl<'de> Deserialize<'de> for CsiVolumeSource
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 CsiVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a CsiVolumeSource value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for CsiVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a CsiVolumeSource value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for CsiVolumeSource
impl PartialEq for CsiVolumeSource
Source§impl Serialize for CsiVolumeSource
impl Serialize for CsiVolumeSource
Source§impl ToString for CsiVolumeSource
Converts the CsiVolumeSource 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 CsiVolumeSource
Converts the CsiVolumeSource 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