runner

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "unknown"

Runner version embedded at build time.

Functions

This section is empty.

Types

type Manager

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

Manager handles extraction and caching of the embedded GitHub Actions runner.

func New

func New(dataDir string, log *slog.Logger) *Manager

New creates a runner manager.

func (*Manager) ContainerDir

func (m *Manager) ContainerDir() string

ContainerDir returns the mount target path inside the container.

func (*Manager) Dir

func (m *Manager) Dir() string

Dir returns the path to the extracted runner directory. The path is OS-specific (e.g. runners/2.333.1-linux) so that macOS and Linux extractions don't collide on shared filesystems (virtio-fs). Call Extract() first to ensure it exists.

func (*Manager) Entrypoint

func (m *Manager) Entrypoint() string

Entrypoint returns the runner entrypoint command for the current OS.

func (*Manager) Extract

func (m *Manager) Extract() error

Extract extracts the embedded runner tarball to the data directory. If the runner is already extracted (cached), this is a no-op.

Jump to

Keyboard shortcuts

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