deps

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 14 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallDependencies

func InstallDependencies(deps map[string]string, binDir string) error

InstallDependencies takes a map of supported dependencies and their version and installs them to the specified binDir

func InstallDependency

func InstallDependency(name, ver string, binDir string) error

InstallDependency installs a binary to binDir, if ver is nil then the default version is used

func Which added in v1.3.0

func Which(cmd string) bool

Types

type BinaryFunc

type BinaryFunc func(msg string, args ...interface{}) error

BinaryFunc is an interface to executing a binary, downloading it necessary

func Binary

func Binary(name, ver string, binDir string) BinaryFunc

Binary returns a function that can be called to execute the binary

func BinaryWithEnv

func BinaryWithEnv(name, ver string, binDir string, env map[string]string) BinaryFunc

BinaryWithEnv returns a function that be called to execute the binary

type BinaryFuncWithEnv

type BinaryFuncWithEnv func(msg string, env map[string]string, args ...interface{}) error

BinaryFuncWithEnv is an interface to executing a binary, downloading it necessary

type Dependency

type Dependency struct {
	Version                            string
	Linux, Macosx, Windows, Go, Docker string
	Template                           string
	BinaryName                         string
	PreInstalled                       []string
}

Dependency is a struct referring to a version and the templated path to download the dependency on the different OS platforms

func (*Dependency) GetPath added in v1.5.15

func (dependency *Dependency) GetPath(name string, binDir string) (string, error)

Jump to

Keyboard shortcuts

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