packages

package
v1.3.1119 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HeptioAuthenticatorAwsVersion = "1.10.3"
View Source
const IBMCloudVersion = "0.10.1"
View Source
const KubectlVersion = "1.13.2"

Variables

This section is empty.

Functions

func BinaryWithExtension

func BinaryWithExtension(binary string) string

func DownloadFile

func DownloadFile(clientURL string, fullPath string) error

DownloadFile downloads binary content of given URL into local filesystem.

func InstalledPackagesFile

func InstalledPackagesFile() (string, error)

InstalledPackagesFile returns absolute path to binaries.yml file used to store version of installed packages.

func IsBinaryWithProperVersionInstalled

func IsBinaryWithProperVersionInstalled(binary string, expectedVersion string, versionExtractor VersionExtractor) (bool, error)

func LoadInstalledPackages

func LoadInstalledPackages() (map[string]string, error)

func LookupForBinary

func LookupForBinary(binary string) (string, error)

func RememberInstalledPackage

func RememberInstalledPackage(packageName string, version string) error

RememberInstalledPackage writes the version of package into local file system. This allows to identify what version of package is currently installed in ~/.jx/bin .

Types

type VersionExtractor

type VersionExtractor interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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