tool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMultipleInstallations = fmt.Errorf("too many installations found")

Functions

func Check

func Check(toolName string, resolvedVersion string, store *binny.Store, verifyDigest bool) error

func Install

func Install(tool binny.Tool, intent binny.VersionIntent, store *binny.Store, verifyDigest bool) error

func New

func New(t Config) (binny.Tool, error)

func ResolveVersion

func ResolveVersion(tool binny.VersionResolver, intent binny.VersionIntent) (string, error)

Types

type Config

type Config struct {
	Name                  string
	InstallerConfig       DetailConfig
	VersionResolverConfig DetailConfig
}

type DetailConfig

type DetailConfig struct {
	Method     string
	Parameters any
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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