pub struct CephFsPersistentVolumeSource {
pub monitors: Vec<String>,
pub path: Option<String>,
pub user: Option<String>,
pub secret_file: Option<String>,
pub secret_ref: Option<SecretReference>,
pub read_only: Option<bool>,
}Expand description
Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
Fields§
§monitors: Vec<String>monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +listType=atomic
path: Option<String>path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / +optional
user: Option<String>user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional
secret_file: Option<String>secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional
secret_ref: Option<SecretReference>secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional
read_only: Option<bool>readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional
Implementations§
Source§impl CephFsPersistentVolumeSource
impl CephFsPersistentVolumeSource
Sourcepub fn secret_file(&self) -> &str
pub fn secret_file(&self) -> &str
Returns the value of secret_file, or the default value if secret_file is unset.
Trait Implementations§
Source§impl Clone for CephFsPersistentVolumeSource
impl Clone for CephFsPersistentVolumeSource
Source§fn clone(&self) -> CephFsPersistentVolumeSource
fn clone(&self) -> CephFsPersistentVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CephFsPersistentVolumeSource
impl Debug for CephFsPersistentVolumeSource
Source§impl Message for CephFsPersistentVolumeSource
impl Message for CephFsPersistentVolumeSource
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.Source§impl PartialEq for CephFsPersistentVolumeSource
impl PartialEq for CephFsPersistentVolumeSource
Source§fn eq(&self, other: &CephFsPersistentVolumeSource) -> bool
fn eq(&self, other: &CephFsPersistentVolumeSource) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CephFsPersistentVolumeSource
Auto Trait Implementations§
impl Freeze for CephFsPersistentVolumeSource
impl RefUnwindSafe for CephFsPersistentVolumeSource
impl Send for CephFsPersistentVolumeSource
impl Sync for CephFsPersistentVolumeSource
impl Unpin for CephFsPersistentVolumeSource
impl UnsafeUnpin for CephFsPersistentVolumeSource
impl UnwindSafe for CephFsPersistentVolumeSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request