builds

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

Run executes the provided TaskRun with the provided options applied, and returns the fully-qualified image digest (or error) upon completion.

func RunPipeline added in v0.20.0

RunPipeline executes the provided PipelineRun with the provided options applied, and returns the final PipelineRun state (or error) upon completion.

func RunTask added in v0.20.0

RunTask executes the provided TaskRun with the provided options applied, and returns the final TaskRun state (or error) upon completion.

Types

type CancelablePipelineOption added in v0.20.0

type CancelablePipelineOption func(context.Context, *tknv1beta1.PipelineRun) (context.CancelFunc, error)

CancelablePipelineOption is a function option that can be used to customize a pipelinerun in certain ways prior to execution. Each option may return a cancel function, which can be used to clean up any temporary artifacts created in support of this pipeline run.

func WithPipelineServiceAccount added in v0.20.0

func WithPipelineServiceAccount(ctx context.Context, sa string, refs ...name.Reference) CancelablePipelineOption

WithPipelineServiceAccount is used to adjust the PipelineRun to execute as a particular service account, as specified by the user. It supports a special "me" sentinel which configures a temporary ServiceAccount infused with the local credentials for the container registry hosting the image we will publish to (and to which the source is published).

type CancelableTaskOption added in v0.20.0

type CancelableTaskOption func(context.Context, *tknv1beta1.TaskRun) (context.CancelFunc, error)

CancelableTaskOption is a function option that can be used to customize a taskrun in certain ways prior to execution. Each option may return a cancel function, which can be used to clean up any temporary artifacts created in support of this task run.

func WithTaskServiceAccount added in v0.20.0

func WithTaskServiceAccount(ctx context.Context, sa string, refs ...name.Reference) CancelableTaskOption

WithTaskServiceAccount is used to adjust the TaskRun to execute as a particular service account, as specified by the user. It supports a special "me" sentinel which configures a temporary ServiceAccount infused with the local credentials for the container registry hosting the image we will publish to (and to which the source is published).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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