runnerdist

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package runnerdist downloads, verifies, caches, and extracts GitHub Actions runner distributions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version   string
	CacheRoot string
}

Config identifies the runner release and the directory used to cache its archive and official SHA-256 digest.

type Manager

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

Manager serializes cache preparation and extracts independent runs concurrently. A Manager must be created with New and may be used concurrently.

func New

func New(timeout time.Duration) *Manager

New creates a Manager with the given timeout for each HTTP request.

func (*Manager) Prepare

func (d *Manager) Prepare(ctx context.Context, c Config, dest string) error

Prepare verifies the cached runner archive, downloading it and its official digest when needed, and extracts it into dest. Waiting for cache preparation and HTTP requests honor ctx; extraction checks ctx between archive entries.

Jump to

Keyboard shortcuts

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