pub struct ClusterVolumeSpec {
pub access_mode: Option<AccessMode>,
pub accessibility_requirements: Option<TopologyRequirement>,
pub availability: Option<String>,
pub capacity_range: Option<CapacityRange>,
pub group: Option<String>,
pub secrets: Option<Vec<Secret>>,
}
Available on crate feature
v5
only.Expand description
ClusterVolumeSpec contains the spec used to create this volume.
Fields§
§access_mode: Option<AccessMode>
§accessibility_requirements: Option<TopologyRequirement>
§availability: Option<String>
§capacity_range: Option<CapacityRange>
§group: Option<String>
Group defines the volume group of this volume. Volumes belonging to the same group can be referred to by group name when creating Services. Referring to a volume by group instructs swarm to treat volumes in that group interchangeably for the purpose of scheduling. Volumes with an empty string for a group technically all belong to the same, emptystring group.
secrets: Option<Vec<Secret>>
Secrets defines Swarm Secrets that are passed to the CSI storage plugin when operating on this volume.
Trait Implementations§
Source§impl Debug for ClusterVolumeSpec
impl Debug for ClusterVolumeSpec
Source§impl Default for ClusterVolumeSpec
impl Default for ClusterVolumeSpec
Source§fn default() -> ClusterVolumeSpec
fn default() -> ClusterVolumeSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterVolumeSpec
impl<'de> Deserialize<'de> for ClusterVolumeSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClusterVolumeSpec
impl RefUnwindSafe for ClusterVolumeSpec
impl Send for ClusterVolumeSpec
impl Sync for ClusterVolumeSpec
impl Unpin for ClusterVolumeSpec
impl UnwindSafe for ClusterVolumeSpec
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
Mutably borrows from an owned value. Read more