infrastructure

package
v0.212.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store installs the prebuilt tools published by the binaries release into ~/.infer/bin/tools on demand, mirroring ModelStore for GGML models.

func NewStore

func NewStore(autoDownload bool) *Store

NewStore creates a Store; autoDownload gates Ensure's release check and install, while Install and Status always run.

func (*Store) Ensure

func (s *Store) Ensure(ctx context.Context, name binariesdomain.Name) (string, error)

Ensure returns the local path to the named binary under ~/.infer/bin/tools, installing it via install.sh when it is missing or its sha256 no longer matches the latest release (release checked at most once per process per binary). An unreachable release (offline) keeps an existing binary, and auto_download disabled never installs or downloads.

func (*Store) Install

func (s *Store) Install(ctx context.Context, version string, names []binariesdomain.Name) error

Install runs install.sh for the named binaries (default: all) into ~/.infer/bin/tools, upgrading any binary whose sha256 differs from the release. version pins a release tag ("" = latest).

func (*Store) Status

func (s *Store) Status(ctx context.Context, names []binariesdomain.Name) ([]binariesdomain.Status, error)

Status reports each named binary (default: all) as missing, stale or current by comparing its sha256 against the latest release's checksums.txt. It never downloads.

Jump to

Keyboard shortcuts

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