pub struct IoArgoprojWorkflowV1alpha1DagTaskBuilder { /* private fields */ }Expand description
Builder for IoArgoprojWorkflowV1alpha1DagTask.
Implementations§
Source§impl IoArgoprojWorkflowV1alpha1DagTaskBuilder
impl IoArgoprojWorkflowV1alpha1DagTaskBuilder
Sourcepub fn arguments(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Arguments>,
) -> &mut Self
pub fn arguments( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Arguments>, ) -> &mut Self
Arguments are the parameter and artifact arguments to the template
Sourcepub fn continue_on(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1ContinueOn>,
) -> &mut Self
pub fn continue_on( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ContinueOn>, ) -> &mut Self
ContinueOn makes argo to proceed with the following step even if this step fails. Errors and Failed states can be specified
Sourcepub fn dependencies(&mut self, value: Vec<String>) -> &mut Self
pub fn dependencies(&mut self, value: Vec<String>) -> &mut Self
Dependencies are name of other targets which this depends on
Sourcepub fn depends(&mut self, value: Option<String>) -> &mut Self
pub fn depends(&mut self, value: Option<String>) -> &mut Self
Depends are name of other targets which this depends on
Sourcepub fn hooks(
&mut self,
value: HashMap<String, IoArgoprojWorkflowV1alpha1LifecycleHook>,
) -> &mut Self
pub fn hooks( &mut self, value: HashMap<String, IoArgoprojWorkflowV1alpha1LifecycleHook>, ) -> &mut Self
Hooks hold the lifecycle hook which is invoked at lifecycle of task, irrespective of the success, failure, or error status of the primary task
Sourcepub fn inline(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Template>,
) -> &mut Self
pub fn inline( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Template>, ) -> &mut Self
Inline is the template. Template must be empty if this is declared (and vice-versa).
Sourcepub fn on_exit(&mut self, value: Option<String>) -> &mut Self
pub fn on_exit(&mut self, value: Option<String>) -> &mut Self
OnExit is a template reference which is invoked at the end of the template, irrespective of the success, failure, or error of the primary template. DEPRECATED: Use Hooks[exit].Template instead.
Sourcepub fn template_ref(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1TemplateRef>,
) -> &mut Self
pub fn template_ref( &mut self, value: Option<IoArgoprojWorkflowV1alpha1TemplateRef>, ) -> &mut Self
TemplateRef is the reference to the template resource to execute.
Sourcepub fn when(&mut self, value: Option<String>) -> &mut Self
pub fn when(&mut self, value: Option<String>) -> &mut Self
When is an expression in which the task should conditionally execute
Sourcepub fn with_items(
&mut self,
value: Vec<IoArgoprojWorkflowV1alpha1Item>,
) -> &mut Self
pub fn with_items( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1Item>, ) -> &mut Self
WithItems expands a task into multiple parallel tasks from the items in the list
Sourcepub fn with_param(&mut self, value: Option<String>) -> &mut Self
pub fn with_param(&mut self, value: Option<String>) -> &mut Self
WithParam expands a task into multiple parallel tasks from the value in the parameter, which is expected to be a JSON list.
Sourcepub fn with_sequence(
&mut self,
value: Option<IoArgoprojWorkflowV1alpha1Sequence>,
) -> &mut Self
pub fn with_sequence( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Sequence>, ) -> &mut Self
WithSequence expands a task into a numeric sequence
Sourcepub fn build(
&self,
) -> Result<IoArgoprojWorkflowV1alpha1DagTask, IoArgoprojWorkflowV1alpha1DagTaskBuilderError>
pub fn build( &self, ) -> Result<IoArgoprojWorkflowV1alpha1DagTask, IoArgoprojWorkflowV1alpha1DagTaskBuilderError>
Builds a new IoArgoprojWorkflowV1alpha1DagTask.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for IoArgoprojWorkflowV1alpha1DagTaskBuilder
impl Clone for IoArgoprojWorkflowV1alpha1DagTaskBuilder
Source§fn clone(&self) -> IoArgoprojWorkflowV1alpha1DagTaskBuilder
fn clone(&self) -> IoArgoprojWorkflowV1alpha1DagTaskBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more