tool

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyInstalled = errors.New("already installed")

Functions

func Check

func Check(store *binny.Store, toolName string, resolvedVersion string, verifyConfig VerifyConfig) error

func Install

func Install(tool binny.Tool, intent binny.VersionIntent, store *binny.Store, verifyConfig VerifyConfig) (err error)

func New

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

func ResolveVersion

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

func VersionResolverMethods added in v0.2.0

func VersionResolverMethods() []string

Types

type Config

type Config struct {
	Name                  string
	InstallerConfig       DetailConfig
	VersionResolverConfig DetailConfig
}

type DetailConfig

type DetailConfig struct {
	Method     string
	Parameters any
}

type VerifyConfig added in v0.2.0

type VerifyConfig struct {
	VerifyXXH64Digest  bool
	VerifySHA256Digest bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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