pub struct IscsiPersistentVolumeSource {
pub target_portal: Option<String>,
pub iqn: Option<String>,
pub lun: Option<i32>,
pub iscsi_interface: Option<String>,
pub fs_type: Option<String>,
pub read_only: Option<bool>,
pub portals: Vec<String>,
pub chap_auth_discovery: Option<bool>,
pub chap_auth_session: Option<bool>,
pub secret_ref: Option<SecretReference>,
pub initiator_name: Option<String>,
}
Expand description
ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
Fields§
§target_portal: Option<String>
targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
iqn: Option<String>
iqn is Target iSCSI Qualified Name.
lun: Option<i32>
lun is iSCSI Target Lun number.
iscsi_interface: Option<String>
iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to ‘default’ (tcp). +optional +default=“default”
fs_type: Option<String>
fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi TODO: how do we prevent errors in the filesystem from compromising the machine +optional
read_only: Option<bool>
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. +optional
portals: Vec<String>
portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). +optional +listType=atomic
chap_auth_discovery: Option<bool>
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication +optional
chap_auth_session: Option<bool>
chapAuthSession defines whether support iSCSI Session CHAP authentication +optional
secret_ref: Option<SecretReference>
secretRef is the CHAP Secret for iSCSI target and initiator authentication +optional
initiator_name: Option<String>
initiatorName is the custom iSCSI Initiator Name.
If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
Implementations§
Source§impl IscsiPersistentVolumeSource
impl IscsiPersistentVolumeSource
Sourcepub fn target_portal(&self) -> &str
pub fn target_portal(&self) -> &str
Returns the value of target_portal
, or the default value if target_portal
is unset.
Sourcepub fn iscsi_interface(&self) -> &str
pub fn iscsi_interface(&self) -> &str
Returns the value of iscsi_interface
, or the default value if iscsi_interface
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.
Sourcepub fn read_only(&self) -> bool
pub fn read_only(&self) -> bool
Returns the value of read_only
, or the default value if read_only
is unset.
Sourcepub fn chap_auth_discovery(&self) -> bool
pub fn chap_auth_discovery(&self) -> bool
Returns the value of chap_auth_discovery
, or the default value if chap_auth_discovery
is unset.
Sourcepub fn chap_auth_session(&self) -> bool
pub fn chap_auth_session(&self) -> bool
Returns the value of chap_auth_session
, or the default value if chap_auth_session
is unset.
Sourcepub fn initiator_name(&self) -> &str
pub fn initiator_name(&self) -> &str
Returns the value of initiator_name
, or the default value if initiator_name
is unset.
Trait Implementations§
Source§impl Clone for IscsiPersistentVolumeSource
impl Clone for IscsiPersistentVolumeSource
Source§fn clone(&self) -> IscsiPersistentVolumeSource
fn clone(&self) -> IscsiPersistentVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IscsiPersistentVolumeSource
impl Debug for IscsiPersistentVolumeSource
Source§impl Hash for IscsiPersistentVolumeSource
impl Hash for IscsiPersistentVolumeSource
Source§impl Message for IscsiPersistentVolumeSource
impl Message for IscsiPersistentVolumeSource
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
.