Documentation ¶
Index ¶
- func Run(ctx context.Context, image string, tr *tknv1beta1.TaskRun, ...) (name.Digest, error)
- func RunPipeline(ctx context.Context, pr *tknv1beta1.PipelineRun, opt *options.LogOptions, ...) (*tknv1beta1.PipelineRun, error)
- func RunTask(ctx context.Context, tr *tknv1beta1.TaskRun, opt *options.LogOptions, ...) (*tknv1beta1.TaskRun, error)
- type CancelablePipelineOption
- type CancelableTaskOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, image string, tr *tknv1beta1.TaskRun, opt *options.LogOptions, opts ...CancelableTaskOption) (name.Digest, error)
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
func RunPipeline(ctx context.Context, pr *tknv1beta1.PipelineRun, opt *options.LogOptions, opts ...CancelablePipelineOption) (*tknv1beta1.PipelineRun, error)
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
func RunTask(ctx context.Context, tr *tknv1beta1.TaskRun, opt *options.LogOptions, opts ...CancelableTaskOption) (*tknv1beta1.TaskRun, error)
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).