toolchain

package
v1.34.18 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package toolchain checks installed tools against a tested release set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type ExecRunner

type ExecRunner struct{}

func (ExecRunner) LookPath

func (ExecRunner) LookPath(name string) (string, error)

func (ExecRunner) Output

func (ExecRunner) Output(ctx context.Context, name string, args ...string) ([]byte, error)

type ReleaseSet

type ReleaseSet struct {
	SchemaVersion int         `json:"schemaVersion"`
	ID            string      `json:"id"`
	Components    []Component `json:"components"`
}

func Load

func Load(path string) (ReleaseSet, error)

type Report

type Report struct {
	SchemaVersion int    `json:"schemaVersion"`
	ReleaseSet    string `json:"releaseSet"`
	Tools         []Tool `json:"tools"`
}

func Inspect

func Inspect(ctx context.Context, set ReleaseSet, selfVersion string, runner Runner) Report

func (Report) Compatible

func (r Report) Compatible() bool

type Runner

type Runner interface {
	LookPath(string) (string, error)
	Output(context.Context, string, ...string) ([]byte, error)
}

type Tool

type Tool struct {
	Name     string `json:"name"`
	Expected string `json:"expected"`
	Actual   string `json:"actual,omitempty"`
	Path     string `json:"path,omitempty"`
	Status   string `json:"status"`
}

Jump to

Keyboard shortcuts

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