pub struct CsiVolumeBuilder { /* private fields */ }
Expand description
Builder for CsiVolume
.
Implementations§
Source§impl CsiVolumeBuilder
impl CsiVolumeBuilder
pub fn plugin_id(&mut self, value: Option<String>) -> &mut Self
Sourcepub fn read_allocs(&mut self, value: HashMap<String, Allocation>) -> &mut Self
pub fn read_allocs(&mut self, value: HashMap<String, Allocation>) -> &mut Self
ReadAllocs is a map of allocation IDs for tracking reader claim status. The Allocation value will always be nil; clients can populate this data by iterating over the Allocations field.
pub fn context(&mut self, value: Option<HashMap<String, String>>) -> &mut Self
Sourcepub fn write_allocs(&mut self, value: HashMap<String, Allocation>) -> &mut Self
pub fn write_allocs(&mut self, value: HashMap<String, Allocation>) -> &mut Self
WriteAllocs is a map of allocation IDs for tracking writer claim status. The Allocation value will always be nil; clients can populate this data by iterating over the Allocations field.
pub fn resource_exhausted(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn attachment_mode(&mut self, value: CsiVolumeAttachmentMode) -> &mut Self
pub fn clone_id(&mut self, value: Option<String>) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
pub fn access_mode(&mut self, value: CsiVolumeAccessMode) -> &mut Self
pub fn parameters( &mut self, value: Option<HashMap<String, String>>, ) -> &mut Self
Sourcepub fn requested_capacity_min(&mut self, value: i64) -> &mut Self
pub fn requested_capacity_min(&mut self, value: i64) -> &mut Self
These fields are used as part of the volume creation request
pub fn controller_required(&mut self, value: bool) -> &mut Self
Sourcepub fn topologies(&mut self, value: Vec<CsiTopology>) -> &mut Self
pub fn topologies(&mut self, value: Vec<CsiTopology>) -> &mut Self
Topologies are the topologies returned by the storage provider, based on the RequestedTopologies and what the storage provider could support. This value cannot be set by the user.
pub fn capacity(&mut self, value: i64) -> &mut Self
pub fn controllers_healthy(&mut self, value: i64) -> &mut Self
Sourcepub fn create_time(&mut self, value: i64) -> &mut Self
pub fn create_time(&mut self, value: i64) -> &mut Self
CreateTime stored as UnixNano
Sourcepub fn modify_time(&mut self, value: i64) -> &mut Self
pub fn modify_time(&mut self, value: i64) -> &mut Self
ModifyTime stored as UnixNano
Sourcepub fn requested_topologies(
&mut self,
value: Option<CsiTopologyRequest>,
) -> &mut Self
pub fn requested_topologies( &mut self, value: Option<CsiTopologyRequest>, ) -> &mut Self
RequestedTopologies are the topologies submitted as options to the storage provider at the time the volume was created. After volumes are created, this field is ignored.
Sourcepub fn allocations(&mut self, value: Vec<AllocationListStub>) -> &mut Self
pub fn allocations(&mut self, value: Vec<AllocationListStub>) -> &mut Self
Allocations is a combined list of readers and writers
pub fn controllers_expected(&mut self, value: i64) -> &mut Self
pub fn mount_options(&mut self, value: Option<CsiMountOptions>) -> &mut Self
Sourcepub fn schedulable(&mut self, value: bool) -> &mut Self
pub fn schedulable(&mut self, value: bool) -> &mut Self
Schedulable is true if all the denormalized plugin health fields are true
pub fn provider(&mut self, value: String) -> &mut Self
pub fn provider_version(&mut self, value: String) -> &mut Self
pub fn external_id(&mut self, value: Option<String>) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn namespace(&mut self, value: String) -> &mut Self
pub fn secrets(&mut self, value: Option<HashMap<String, String>>) -> &mut Self
pub fn requested_capacity_max(&mut self, value: i64) -> &mut Self
pub fn requested_capabilities( &mut self, value: Vec<CsiVolumeCapability>, ) -> &mut Self
pub fn snapshot_id(&mut self, value: Option<String>) -> &mut Self
pub fn nodes_healthy(&mut self, value: i64) -> &mut Self
pub fn id(&mut self, value: String) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
pub fn nodes_expected(&mut self, value: i64) -> &mut Self
Trait Implementations§
Source§impl Clone for CsiVolumeBuilder
impl Clone for CsiVolumeBuilder
Source§fn clone(&self) -> CsiVolumeBuilder
fn clone(&self) -> CsiVolumeBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more