Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PipelineRun ¶
func PipelineRun(name, namespace string, ops ...PipelineRunOp) *v1beta1.PipelineRun
PipelineRun creates a new v1beta1 PipelineRun.
Types ¶
type PipelineResourceBindingOp ¶
type PipelineResourceBindingOp func(*v1beta1.PipelineResourceBinding)
PipelineResourceBindingOp is an operation which modify a PipelineResourceBinding struct.
func PipelineResourceBindingResourceSpec ¶
func PipelineResourceBindingResourceSpec(spec *resource.PipelineResourceSpec) PipelineResourceBindingOp
PipelineResourceBindingResourceSpec set the PipelineResourceResourceSpec to the PipelineResourceBinding.
type PipelineRunOp ¶
type PipelineRunOp func(*v1beta1.PipelineRun)
PipelineRunOp modifies a PipelineRun.
func PipelineRunAnnotation ¶
func PipelineRunAnnotation(key, value string) PipelineRunOp
PipelineRunAnnotation adds a annotation to the PipelineRun.
func PipelineRunLabel ¶
func PipelineRunLabel(key, value string) PipelineRunOp
PipelineRunLabel adds a label to the PipelineRun.
func PipelineRunSpec ¶
func PipelineRunSpec(name string, ops ...PipelineRunSpecOp) PipelineRunOp
PipelineRunSpec sets the PipelineRunSpec, references Pipeline with specified name, to the PipelineRun. Any number of PipelineRunSpec modifier can be passed to transform it.
func PipelineRunStatus ¶
func PipelineRunStatus(ops ...PipelineRunStatusOp) PipelineRunOp
PipelineRunStatus sets the PipelineRunStatus to the PipelineRun. Any number of PipelineRunStatus modifier can be passed to transform it.
type PipelineRunSpecOp ¶
type PipelineRunSpecOp func(*v1beta1.PipelineRunSpec)
PipelineRunSpecOp is an operation which modify a PipelineRunSpec struct.
func PipelineRunResourceBinding ¶
func PipelineRunResourceBinding(name string, ops ...PipelineResourceBindingOp) PipelineRunSpecOp
PipelineRunResourceBinding adds bindings from actual instances to a Pipeline's declared resources.
type PipelineRunStatusOp ¶
type PipelineRunStatusOp func(*v1beta1.PipelineRunStatus)
PipelineRunStatusOp is an operation which modifies a PipelineRunStatus
func PipelineRunStatusCondition ¶
func PipelineRunStatusCondition(condition apis.Condition) PipelineRunStatusOp
PipelineRunStatusCondition adds a StatusCondition to the TaskRunStatus.
func PipelineRunTaskRunsStatus ¶
func PipelineRunTaskRunsStatus(taskRunName string, status *v1beta1.PipelineRunTaskRunStatus) PipelineRunStatusOp
PipelineRunTaskRunsStatus sets the status of TaskRun to the PipelineRunStatus.