packages

package
v2.0.400-0...-14731b4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EksCtlVersion = "0.25.0"

EksCtlVersion binary version to use

View Source
const GlooVersion = "1.3.23"

GlooVersion binary version to use

View Source
const Helm2Version = "2.17.0"

Helm2Version binary version to use

View Source
const Helm3Version = "3.2.0"

Helm3Version binary version to use

View Source
const IBMCloudVersion = "0.10.1"

IBMCloudVersion ibm cloud binary version

View Source
const IamAuthenticatorAwsVersion = "1.12.7"

IamAuthenticatorAwsVersion authenticator binary version to use

View Source
const KubectlVersion = "1.16.5"

KubectlVersion binary version to use

View Source
const KustomizeVersion = "3.5.1"

KustomizeVersion binary version to use

Variables

View Source
var GlobalBinaryPathAllowlist = []string{
	"az",
	"gcloud",
	"oc",
	"brew",
}

GlobalBinaryPathAllowlist binaries that require to be on the path but do not need to exist in JX_HOME/bin

Functions

func AddRequiredBinary

func AddRequiredBinary(binName string, deps []string) []string

AddRequiredBinary add the required binary

func BinaryShouldBeInstalled

func BinaryShouldBeInstalled(d string) string

BinaryShouldBeInstalled appends the binary to the deps array if it cannot be found on the $PATH

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 FilterInstalledDependencies

func FilterInstalledDependencies(deps []string) []string

FilterInstalledDependencies filters installed dependencies

func InstallKubectl

func InstallKubectl(skipPathScan bool) error

InstallKubectl installs kubectl

func InstallKubectlWithVersion

func InstallKubectlWithVersion(version string, skipPathScan bool) error

InstallKubectlWithVersion install a specific version of kubectl

func InstallOrUpdateBinary

func InstallOrUpdateBinary(options InstallOrUpdateBinaryOptions) error

InstallOrUpdateBinary installs or updates a binary

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 .

func ShouldInstallBinary

func ShouldInstallBinary(name string) (bool, error)

ShouldInstallBinary checks if the given binary should be installed

func UninstallBinary

func UninstallBinary(binDir string, name string) error

UninstallBinary uninstalls given binary

Types

type InstallOrUpdateBinaryOptions

type InstallOrUpdateBinaryOptions struct {
	Binary                       string
	GitHubOrganization           string
	DownloadUrlTemplate          string
	DownloadUrlTemplateLowerCase bool
	Version                      string
	SkipPathScan                 bool
	VersionExtractor             VersionExtractor
	Archived                     bool
	ArchiveDirectory             string
}

InstallOrUpdateBinaryOptions options for install or update binary

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