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 ¶
Click to show internal directories.
Click to hide internal directories.