Struct k8s_openapi_ext::corev1::FlexVolumeSource
source · [−]pub struct FlexVolumeSource {
pub driver: String,
pub fs_type: Option<String>,
pub options: Option<BTreeMap<String, String, Global>>,
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: String
driver is the name of the driver to use for this volume.
fs_type: Option<String>
fsType is the 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, Global>>
options is Optional: this field holds extra command options if any.
read_only: Option<bool>
readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
secret_ref: Option<LocalObjectReference>
secretRef is 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
sourceimpl Clone for FlexVolumeSource
impl Clone for FlexVolumeSource
sourcefn clone(&self) -> FlexVolumeSource
fn clone(&self) -> FlexVolumeSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FlexVolumeSource
impl Debug for FlexVolumeSource
sourceimpl Default for FlexVolumeSource
impl Default for FlexVolumeSource
sourcefn default() -> FlexVolumeSource
fn default() -> FlexVolumeSource
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FlexVolumeSource
impl<'de> Deserialize<'de> for FlexVolumeSource
sourcefn deserialize<D>(
deserializer: D
) -> Result<FlexVolumeSource, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<FlexVolumeSource, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<FlexVolumeSource> for FlexVolumeSource
impl PartialEq<FlexVolumeSource> for FlexVolumeSource
sourcefn eq(&self, other: &FlexVolumeSource) -> bool
fn eq(&self, other: &FlexVolumeSource) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for FlexVolumeSource
impl Serialize for FlexVolumeSource
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FlexVolumeSource
Auto Trait Implementations
impl RefUnwindSafe for FlexVolumeSource
impl Send for FlexVolumeSource
impl Sync for FlexVolumeSource
impl Unpin for FlexVolumeSource
impl UnwindSafe for FlexVolumeSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more