Struct k8s_openapi::v1_7::kubernetes::pkg::api::v1::FlexVolumeSource [−][src]
pub struct FlexVolumeSource {
pub driver: String,
pub fs_type: Option<String>,
pub options: Option<BTreeMap<String, String>>,
pub read_only: Option<bool>,
pub secret_ref: Option<LocalObjectReference>,
}FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.
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: Option<BTreeMap<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<LocalObjectReference>
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
impl Clone for FlexVolumeSource[src]
impl Clone for FlexVolumeSourcefn clone(&self) -> FlexVolumeSource[src]
fn clone(&self) -> FlexVolumeSourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for FlexVolumeSource[src]
impl Debug for FlexVolumeSourcefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for FlexVolumeSource[src]
impl Default for FlexVolumeSourcefn default() -> FlexVolumeSource[src]
fn default() -> FlexVolumeSourceReturns the "default value" for a type. Read more
impl PartialEq for FlexVolumeSource[src]
impl PartialEq for FlexVolumeSourcefn eq(&self, other: &FlexVolumeSource) -> bool[src]
fn eq(&self, other: &FlexVolumeSource) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FlexVolumeSource) -> bool[src]
fn ne(&self, other: &FlexVolumeSource) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for FlexVolumeSource[src]
impl<'de> Deserialize<'de> for FlexVolumeSourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Serialize for FlexVolumeSource[src]
impl Serialize for FlexVolumeSourceAuto Trait Implementations
impl Send for FlexVolumeSource
impl Send for FlexVolumeSourceimpl Sync for FlexVolumeSource
impl Sync for FlexVolumeSource