pub struct TaskCsiPluginConfigBuilder { /* private fields */ }
Expand description
Builder for TaskCsiPluginConfig
.
Implementations§
Source§impl TaskCsiPluginConfigBuilder
impl TaskCsiPluginConfigBuilder
Sourcepub fn id(&mut self, value: Option<String>) -> &mut Self
pub fn id(&mut self, value: Option<String>) -> &mut Self
ID is the identifier of the plugin. Ideally this should be the FQDN of the plugin.
Sourcepub fn type(&mut self, value: Option<CsiPluginType>) -> &mut Self
pub fn type(&mut self, value: Option<CsiPluginType>) -> &mut Self
CSIPluginType instructs Nomad on how to handle processing a plugin
Sourcepub fn mount_dir(&mut self, value: Option<String>) -> &mut Self
pub fn mount_dir(&mut self, value: Option<String>) -> &mut Self
MountDir is the directory (within its container) in which the plugin creates a socket (called CSISocketName) for communication with Nomad. Default is /csi.
Sourcepub fn stage_publish_base_dir(&mut self, value: Option<String>) -> &mut Self
pub fn stage_publish_base_dir(&mut self, value: Option<String>) -> &mut Self
StagePublishBaseDir is the base directory (within its container) in which the plugin mounts volumes being staged and bind mounts volumes being published. e.g. staging_target_path = {StagePublishBaseDir}/staging/{volume-id}/{usage-mode} e.g. target_path = {StagePublishBaseDir}/per-alloc/{alloc-id}/{volume-id}/{usage-mode} Default is /local/csi.
Sourcepub fn health_timeout(&mut self, value: Option<TimeDelta>) -> &mut Self
pub fn health_timeout(&mut self, value: Option<TimeDelta>) -> &mut Self
HealthTimeout is the time after which the CSI plugin tasks will be killed if the CSI Plugin is not healthy.
Sourcepub fn build(
&self,
) -> Result<TaskCsiPluginConfig, TaskCsiPluginConfigBuilderError>
pub fn build( &self, ) -> Result<TaskCsiPluginConfig, TaskCsiPluginConfigBuilderError>
Trait Implementations§
Source§impl Clone for TaskCsiPluginConfigBuilder
impl Clone for TaskCsiPluginConfigBuilder
Source§fn clone(&self) -> TaskCsiPluginConfigBuilder
fn clone(&self) -> TaskCsiPluginConfigBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more