pipelinerun

package
v0.0.0-...-c27b85c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Spec returns a Transformer func to add a given PipelineRunSpec to PipelineRun.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL