Documentation ¶
Index ¶
- func NewPipelineRun(m metav1.ObjectMeta, transformers ...Transformer) *pipelinev1beta1.PipelineRun
- func SkipWhenExpression() pipelinev1beta1.WhenExpressions
- type ResolvedResultRef
- type ResolvedResultRefs
- type Transformer
- func ApplyResultsToPipelineResults(refs ResolvedResultRefs) Transformer
- func ApplyResultsToPipelineTask(pipelineTaskName string, refs ResolvedResultRefs) Transformer
- func ApplyResultsToPipelineTasks(refs ResolvedResultRefs) Transformer
- func PipelineSpec(spec *pipelinev1beta1.PipelineSpec) Transformer
- func RemovePipelineRef() Transformer
- func SkipTask(pipelineTaskName string) Transformer
- func Spec(spec *pipelinev1beta1.PipelineRunSpec) Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPipelineRun ¶
func NewPipelineRun(m metav1.ObjectMeta, transformers ...Transformer) *pipelinev1beta1.PipelineRun
NewPipelineRun returns a new PipelineRun with applying one or more transformers.
func SkipWhenExpression ¶
func SkipWhenExpression() pipelinev1beta1.WhenExpressions
SkipWhenExpression creates v1beta1.WhenExpression which is always evaluated as false to skip tasks it is attached.
Types ¶
type ResolvedResultRef ¶
type ResolvedResultRef struct { Value pipelinev1beta1.ArrayOrString ResultReference pipelinev1beta1.ResultRef FromTaskRun string }
ResolvedResultRef represents a result ref reference that has been fully resolved (value has been populated). If the value is from a Result, then the ResultReference will be populated to point to the ResultReference which resulted in the value
type ResolvedResultRefs ¶
type ResolvedResultRefs []*ResolvedResultRef
type Transformer ¶
type Transformer func(r *pipelinev1beta1.PipelineRun)
func ApplyResultsToPipelineResults ¶
func ApplyResultsToPipelineResults(refs ResolvedResultRefs) Transformer
ApplyResultsToPipelineResults returns a Transformer func to apply variable substitution for pipeline results using already completed task results.
func ApplyResultsToPipelineTask ¶
func ApplyResultsToPipelineTask(pipelineTaskName string, refs ResolvedResultRefs) Transformer
ApplyResultsToPipelineTask returns a Transformer func to apply variable substitution for given PipelineTask using already completed task results.
func ApplyResultsToPipelineTasks ¶
func ApplyResultsToPipelineTasks(refs ResolvedResultRefs) Transformer
ApplyResultsToPipelineTasks returns a Transformer func to apply variable substitution for all PipelineTasks using already completed task results.
func PipelineSpec ¶
func PipelineSpec(spec *pipelinev1beta1.PipelineSpec) Transformer
PipelineSpec returns a Transformer func to add a given PipelineSpec to PipelineRun.
func RemovePipelineRef ¶
func RemovePipelineRef() Transformer
RemovePipelineRef returns a Transformer func to remove PipelineRef.
func SkipTask ¶
func SkipTask(pipelineTaskName string) Transformer
SkipTask returns a Transformer func to add WhenExpression which is always evaluated as false to a given PipelineTask to skip it.
func Spec ¶
func Spec(spec *pipelinev1beta1.PipelineRunSpec) Transformer
Spec returns a Transformer func to add a given PipelineRunSpec to PipelineRun.