pub struct AzureDiskVolumeSource {
pub disk_name: Option<String>,
pub disk_uri: Option<String>,
pub caching_mode: Option<String>,
pub fs_type: Option<String>,
pub read_only: Option<bool>,
pub kind: Option<String>,
}
Expand description
AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
Fields§
§disk_name: Option<String>
diskName is the Name of the data disk in the blob storage
disk_uri: Option<String>
diskURI is the URI of data disk in the blob storage
caching_mode: Option<String>
cachingMode is the Host Caching mode: None, Read Only, Read Write. +optional +default=ref(AzureDataDiskCachingReadWrite)
fs_type: Option<String>
fsType is 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. +optional +default=“ext4”
read_only: Option<bool>
readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional +default=false
kind: Option<String>
kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared +default=ref(AzureSharedBlobDisk)
Implementations§
Source§impl AzureDiskVolumeSource
impl AzureDiskVolumeSource
Sourcepub fn disk_name(&self) -> &str
pub fn disk_name(&self) -> &str
Returns the value of disk_name
, or the default value if disk_name
is unset.
Sourcepub fn disk_uri(&self) -> &str
pub fn disk_uri(&self) -> &str
Returns the value of disk_uri
, or the default value if disk_uri
is unset.
Sourcepub fn caching_mode(&self) -> &str
pub fn caching_mode(&self) -> &str
Returns the value of caching_mode
, or the default value if caching_mode
is unset.
Sourcepub fn fs_type(&self) -> &str
pub fn fs_type(&self) -> &str
Returns the value of fs_type
, or the default value if fs_type
is unset.
Trait Implementations§
Source§impl Clone for AzureDiskVolumeSource
impl Clone for AzureDiskVolumeSource
Source§fn clone(&self) -> AzureDiskVolumeSource
fn clone(&self) -> AzureDiskVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AzureDiskVolumeSource
impl Debug for AzureDiskVolumeSource
Source§impl Default for AzureDiskVolumeSource
impl Default for AzureDiskVolumeSource
Source§impl Hash for AzureDiskVolumeSource
impl Hash for AzureDiskVolumeSource
Source§impl Message for AzureDiskVolumeSource
impl Message for AzureDiskVolumeSource
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.