run

package
v12.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCache added in v12.7.0

func SetupCache(cfg *config.Config) *cacheproxy.Handler

Types

type NullLogger

type NullLogger struct{}

NullLogger is used to create a new JobLogger to discard logs. This will prevent these logs from being logged to the stdout, but forward them to the Reporter via its hook.

func (NullLogger) WithJobLogger

func (n NullLogger) WithJobLogger() *log.Logger

WithJobLogger creates a new logrus.Logger that will discard all logs.

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner runs the pipeline.

func NewRunner

func NewRunner(cfg *config.Config, name string, ls labels.Labels, cli client.Client, cacheProxy *cacheproxy.Handler) *Runner

func (*Runner) Declare

func (r *Runner) Declare(ctx context.Context, labels []string) (*connect.Response[runnerv1.DeclareResponse], error)

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, task *runnerv1.Task)

func (*Runner) Update

func (r *Runner) Update(ctx context.Context, labels labels.Labels)

type RunnerInterface

type RunnerInterface interface {
	Run(ctx context.Context, task *runnerv1.Task)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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