tektoninclude

package
v0.0.0-...-c22543c Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IncludePrefix the prefix on an image to identity this step as being included from a Task via
	// a remote URL
	IncludePrefix = "include:"

	// OverridePrefix the prefix on a task name to indicate it defines override steps
	OverridePrefix = "override:"
)

Variables

This section is empty.

Functions

func DefaultResolver

func DefaultResolver(uri string) (*tektonv1beta1.Task, error)

DefaultResolver default resolver which handles URLs

func OverrideStep

func OverrideStep(step *tektonv1beta1.Step, override *tektonv1beta1.Step)

func OverrideTask

func OverrideTask(pt *tektonv1beta1.PipelineTask, overrideSteps *tektonv1beta1.TaskSpec)

func TransformPipelineRun

func TransformPipelineRun(prs *tektonv1beta1.PipelineRun, resolver TaskResolver) error

TransformPipelineRun processes the tasks to inline any included steps

func TransformSteps

func TransformSteps(steps []tektonv1beta1.Step, resolver TaskResolver) ([]tektonv1beta1.Step, error)

TransformSteps transforms the steps adding any include directives

func TransformTask

func TransformTask(task *tektonv1beta1.TaskSpec, resolver TaskResolver) error

Types

type TaskResolver

type TaskResolver func(string) (*tektonv1beta1.Task, error)

Jump to

Keyboard shortcuts

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