Struct k8s_openapi_ext::corev1::StorageOSVolumeSource
source · [−]pub struct StorageOSVolumeSource {
pub fs_type: Option<String>,
pub read_only: Option<bool>,
pub secret_ref: Option<LocalObjectReference>,
pub volume_name: Option<String>,
pub volume_namespace: Option<String>,
}
Expand description
Represents a StorageOS persistent volume resource.
Fields
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”. Implicitly inferred to be “ext4” if unspecified.
read_only: Option<bool>
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
secret_ref: Option<LocalObjectReference>
secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.
volume_name: Option<String>
volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
volume_namespace: Option<String>
volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod’s namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to “default” if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
Trait Implementations
sourceimpl Clone for StorageOSVolumeSource
impl Clone for StorageOSVolumeSource
sourcefn clone(&self) -> StorageOSVolumeSource
fn clone(&self) -> StorageOSVolumeSource
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 StorageOSVolumeSource
impl Debug for StorageOSVolumeSource
sourceimpl Default for StorageOSVolumeSource
impl Default for StorageOSVolumeSource
sourcefn default() -> StorageOSVolumeSource
fn default() -> StorageOSVolumeSource
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for StorageOSVolumeSource
impl<'de> Deserialize<'de> for StorageOSVolumeSource
sourcefn deserialize<D>(
deserializer: D
) -> Result<StorageOSVolumeSource, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<StorageOSVolumeSource, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<StorageOSVolumeSource> for StorageOSVolumeSource
impl PartialEq<StorageOSVolumeSource> for StorageOSVolumeSource
sourcefn eq(&self, other: &StorageOSVolumeSource) -> bool
fn eq(&self, other: &StorageOSVolumeSource) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for StorageOSVolumeSource
impl Serialize for StorageOSVolumeSource
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 StorageOSVolumeSource
Auto Trait Implementations
impl RefUnwindSafe for StorageOSVolumeSource
impl Send for StorageOSVolumeSource
impl Sync for StorageOSVolumeSource
impl Unpin for StorageOSVolumeSource
impl UnwindSafe for StorageOSVolumeSource
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