dashboardruntime

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package dashboardruntime builds and publishes the immutable runtime used by repository-local Pi dashboard queries.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsafePath        = errors.New("unsafe dashboard runtime path")
	ErrInvalidRef        = errors.New("invalid dashboard runtime ref")
	ErrBuild             = errors.New("dashboard runtime build failed")
	ErrCacheCollision    = errors.New("dashboard runtime cache collision")
	ErrSnapshot          = errors.New("dashboard runtime snapshot invalid")
	ErrConcurrentAdvance = errors.New("dashboard runtime ref advanced concurrently")
)

Functions

This section is empty.

Types

type AdvanceResult

type AdvanceResult struct {
	OldCommit, NewCommit, LauncherPath string
}

AdvanceResult reports a successful compare-and-swap pointer advance.

func Advance

func Advance(root, revision string, env BuildEnvironment) (AdvanceResult, error)

Advance publishes revision and then advances the runtime ref with compare-and-swap.

type BuildEnvironment

type BuildEnvironment struct {
	GOOS, GOARCH, GoBinary, XDGCacheHome string
	Stderr                               io.Writer
}

BuildEnvironment fixes every host input that is allowed to affect a build.

type Launcher

type Launcher struct {
	Path, Commit, CacheKey, Diagnostic string
	Initialized                        bool
}

Launcher identifies one immutable published launcher.

func Resolve

func Resolve(root string, env BuildEnvironment) (Launcher, error)

Resolve resolves (and, on first use, initializes) the repository runtime ref.

Directories

Path Synopsis
Command awf-dashboard-runtime exposes repository-runner operations for the immutable Pi dashboard development runtime.
Command awf-dashboard-runtime exposes repository-runner operations for the immutable Pi dashboard development runtime.

Jump to

Keyboard shortcuts

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