local

package
v0.175.0-rc.533 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 24 Imported by: 0 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 local runs accepted sessions in digest-pinned Linux containers on the runner's machine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Directory is the private session store of this runner's OS user.
	Directory string
	Profiles  []Profile
	// GitName and GitEmail are the host's public commit identity.
	GitName, GitEmail string
	// GitAccess is the runner's git access. Empty is none.
	GitAccess executor.GitAccess `json:"-"`
	// GitTransport carries the host-authenticated request to GitHub.
	// Nil uses the default HTTPS transport.
	GitTransport http.RoundTripper `json:"-"`
	// ResolveContext reads the already-authorized context bundle by reference.
	ResolveContext func(context.Context, string) (json.RawMessage, error) `json:"-"`
}

type Executor

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

Executor owns only the sessions running on this machine.

func New

func New(config Config) (*Executor, error)

func (*Executor) Cancel

func (e *Executor) Cancel(ctx context.Context, task string) error

func (*Executor) Start

func (e *Executor) Start(ctx context.Context, offer runnerapi.Offer, report func(runnerapi.SessionReport)) error

type Profile

type Profile struct {
	Harness, Subscription, Provider string
	Model, Origin                   string
	Transport                       http.RoundTripper `json:"-"`
	// Image and Toolchains override the local platform pins when an installation upgrades.
	Image      string
	Toolchains map[string]string
}

Profile is the host's configuration for one advertised harness and subscription. Origin serves the provider API. Transport may authenticate as the subscription on the host, e.g. through a local authenticated provider gateway.

Jump to

Keyboard shortcuts

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