builds

package
v0.19.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(masterURL, kubeconfig string) (*rest.Config, error)

GetConfig is forked out of sharedmain because linking knative.dev/pkg/metrics spews logs.

func Run

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

Types

type CancelableOption

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

CancelableOption 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 WithServiceAccount

func WithServiceAccount(sa string, refs ...name.Reference) CancelableOption

WithServiceAccount 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