Versions in this module Expand all Collapse all v0 v0.2.0 Aug 5, 2026 Changes in this version + var ErrNotCached = errors.New("binkit: tool is pinned but not installed") type Resolver + func (r *Resolver) CachedPath(t Tool) (string, error) + func (r *Resolver) Pins() (LockFile, error) v0.1.0 Aug 1, 2026 Changes in this version + const DefaultCheckEvery + const EnvCacheDir + const EnvNoUpdateCheck + var DefaultPlatforms = []Platform + var ErrAssetNotFound = errors.New("binkit: release has no such asset") + var ErrBinaryNotInArchive = errors.New("binkit: binary not found in archive") + var ErrDigestMismatch = errors.New("binkit: digest mismatch") + var ErrInvalidTool = errors.New("binkit: invalid tool definition") + var ErrNoDigest = errors.New("binkit: no pinned digest for this platform") + var ErrNotPinned = errors.New("binkit: tool is not pinned") + var ErrUnsupportedArchive = errors.New("binkit: unsupported archive format") + var ErrUnsupportedPlatform = errors.New("binkit: tool is not published for this platform") + type LockEntry struct + Digests map[string]string + Repo string + Version string + type LockFile map[string]LockEntry + type Platform struct + Arch string + OS string + func (p Platform) String() string + type Resolver struct + CacheDir string + CheckEvery time.Duration + HTTP *http.Client + Lock string + NoCheck bool + Now func() time.Time + Platforms []Platform + Stderr io.Writer + UpdateHint func(toolName string) string + func (r *Resolver) Ensure(ctx context.Context, t Tool) (string, error) + func (r *Resolver) Update(ctx context.Context, t Tool, version string) (string, error) + type Tool struct + Asset func(version, goos, goarch string) (string, error) + BinaryPath func(version, goos, goarch string) string + Name string + Repo string + Tag func(version string) string + func (t Tool) EnvKey() string