Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
GetConfig is forked out of sharedmain because linking knative.dev/pkg/metrics spews logs.
func Run ¶
func Run(ctx context.Context, image string, tr *tknv1beta1.TaskRun, opt *options.LogOptions, opts ...CancelableOption) (name.Digest, error)
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).