pub struct IoArgoprojWorkflowV1alpha1DagTemplateBuilder { /* private fields */ }Expand description
Builder for IoArgoprojWorkflowV1alpha1DagTemplate.
Implementations§
Source§impl IoArgoprojWorkflowV1alpha1DagTemplateBuilder
impl IoArgoprojWorkflowV1alpha1DagTemplateBuilder
Sourcepub fn fail_fast(&mut self, value: Option<bool>) -> &mut Self
pub fn fail_fast(&mut self, value: Option<bool>) -> &mut Self
This flag is for DAG logic. The DAG logic has a built-in “fail fast” feature to stop scheduling new steps, as soon as it detects that one of the DAG nodes is failed. Then it waits until all DAG nodes are completed before failing the DAG itself. The FailFast flag default is true, if set to false, it will allow a DAG to run all branches of the DAG to completion (either success or failure), regardless of the failed outcomes of branches in the DAG. More info and example about this feature at https://github.com/argoproj/argo-workflows/issues/1442
Sourcepub fn target(&mut self, value: Option<String>) -> &mut Self
pub fn target(&mut self, value: Option<String>) -> &mut Self
Target are one or more names of targets to execute in a DAG
Sourcepub fn tasks(
&mut self,
value: Vec<IoArgoprojWorkflowV1alpha1DagTask>,
) -> &mut Self
pub fn tasks( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1DagTask>, ) -> &mut Self
Tasks are a list of DAG tasks
Sourcepub fn build(
&self,
) -> Result<IoArgoprojWorkflowV1alpha1DagTemplate, IoArgoprojWorkflowV1alpha1DagTemplateBuilderError>
pub fn build( &self, ) -> Result<IoArgoprojWorkflowV1alpha1DagTemplate, IoArgoprojWorkflowV1alpha1DagTemplateBuilderError>
Builds a new IoArgoprojWorkflowV1alpha1DagTemplate.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for IoArgoprojWorkflowV1alpha1DagTemplateBuilder
impl Clone for IoArgoprojWorkflowV1alpha1DagTemplateBuilder
Source§fn clone(&self) -> IoArgoprojWorkflowV1alpha1DagTemplateBuilder
fn clone(&self) -> IoArgoprojWorkflowV1alpha1DagTemplateBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more