Help us shape the future of Go! Take the 2026 Go Developer Survey

runtime

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToTemplateToken

func ToTemplateToken(node yaml.Node) *protocol.TemplateToken

Types

type Runner

type Runner struct {
	Machine       string
	ForgeInstance string
	Environ       map[string]string
	Client        client.Client
	Labels        []string
	RunnerWorker  []string
}

Runner runs the pipeline.

func (*Runner) Run

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

Run runs the pipeline stage.

type Task

type Task struct {
	BuildID int64
	Input   *TaskInput
	// contains filtered or unexported fields
}

func NewTask

func NewTask(forgeInstance string, buildID int64, client client.Client, runnerEnvs map[string]string, picker func([]string) string) *Task

NewTask creates a new task

func (*Task) Run

func (t *Task) Run(ctx context.Context, task *runnerv1.Task, runnerWorker []string) (errormsg error)

type TaskInput

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

Jump to

Keyboard shortcuts

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