deps

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 6

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, Go, Docker 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

Jump to

Keyboard shortcuts

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