runner

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package runner runs the lifecycle of a single ephemeral runner instance: fetch a fresh JIT config, launch it on a backend, stream its logs, and wait for it to finish its one job.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOnce

func RunOnce(ctx context.Context, gh *github.Client, be backend.Backend, spec Spec, logger *slog.Logger) (int, error)

RunOnce provisions a fresh JIT config, launches the runner on the backend, streams its logs, and blocks until it exits (after its single job). The returned exit code is the runner process exit code.

Types

type Spec

type Spec struct {
	Name          string
	Image         string
	RunnerGroupID int64
	Labels        []string
	WorkFolder    string
	Env           map[string]string
	Mounts        []backend.Mount
	Container     backend.ContainerSettings
	Index         int
}

Spec describes one runner to launch.

Jump to

Keyboard shortcuts

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