pub struct CsiControllerInfoBuilder { /* private fields */ }
Expand description
Builder for CsiControllerInfo
.
Implementations§
Source§impl CsiControllerInfoBuilder
impl CsiControllerInfoBuilder
Sourcepub fn supports_create_delete(&mut self, value: bool) -> &mut Self
pub fn supports_create_delete(&mut self, value: bool) -> &mut Self
SupportsCreateDelete indicates plugin support for CREATE_DELETE_VOLUME
Sourcepub fn supports_attach_detach(&mut self, value: bool) -> &mut Self
pub fn supports_attach_detach(&mut self, value: bool) -> &mut Self
SupportsPublishVolume is true when the controller implements the methods required to attach and detach volumes. If this is false Nomad should skip the controller attachment flow.
Sourcepub fn supports_create_delete_snapshot(&mut self, value: bool) -> &mut Self
pub fn supports_create_delete_snapshot(&mut self, value: bool) -> &mut Self
SupportsCreateDeleteSnapshot indicates plugin support for CREATE_DELETE_SNAPSHOT
Sourcepub fn supports_clone(&mut self, value: bool) -> &mut Self
pub fn supports_clone(&mut self, value: bool) -> &mut Self
SupportsClone indicates plugin support for CLONE_VOLUME
Sourcepub fn supports_read_only_attach(&mut self, value: bool) -> &mut Self
pub fn supports_read_only_attach(&mut self, value: bool) -> &mut Self
SupportsReadOnlyAttach is set to true when the controller returns the ATTACH_READONLY capability.
Sourcepub fn supports_list_volumes_attached_nodes(&mut self, value: bool) -> &mut Self
pub fn supports_list_volumes_attached_nodes(&mut self, value: bool) -> &mut Self
SupportsListVolumesAttachedNodes indicates whether the plugin will return attached nodes data when making ListVolume RPCs (plugin support for LIST_VOLUMES_PUBLISHED_NODES)
Sourcepub fn supports_condition(&mut self, value: bool) -> &mut Self
pub fn supports_condition(&mut self, value: bool) -> &mut Self
SupportsCondition indicates plugin support for VOLUME_CONDITION
Sourcepub fn supports_get(&mut self, value: bool) -> &mut Self
pub fn supports_get(&mut self, value: bool) -> &mut Self
SupportsGet indicates plugin support for GET_VOLUME
Sourcepub fn supports_list_volumes(&mut self, value: bool) -> &mut Self
pub fn supports_list_volumes(&mut self, value: bool) -> &mut Self
SupportsListVolumes is true when the controller implements the ListVolumes RPC. NOTE: This does not guarantee that attached nodes will be returned unless SupportsListVolumesAttachedNodes is also true.
Sourcepub fn supports_get_capacity(&mut self, value: bool) -> &mut Self
pub fn supports_get_capacity(&mut self, value: bool) -> &mut Self
SupportsGetCapacity indicates plugin support for GET_CAPACITY
Sourcepub fn supports_list_snapshots(&mut self, value: bool) -> &mut Self
pub fn supports_list_snapshots(&mut self, value: bool) -> &mut Self
SupportsListSnapshots indicates plugin support for LIST_SNAPSHOTS
Sourcepub fn supports_expand(&mut self, value: bool) -> &mut Self
pub fn supports_expand(&mut self, value: bool) -> &mut Self
SupportsExpand indicates plugin support for EXPAND_VOLUME
Sourcepub fn build(&self) -> Result<CsiControllerInfo, CsiControllerInfoBuilderError>
pub fn build(&self) -> Result<CsiControllerInfo, CsiControllerInfoBuilderError>
Trait Implementations§
Source§impl Clone for CsiControllerInfoBuilder
impl Clone for CsiControllerInfoBuilder
Source§fn clone(&self) -> CsiControllerInfoBuilder
fn clone(&self) -> CsiControllerInfoBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more