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 ¶
NewStore creates a Store; autoDownload gates Ensure's release check and install, while Install and Status always run.
func (*Store) Ensure ¶
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 ¶
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.