Documentation ¶
Index ¶
- Constants
- func BinaryWithExtension(binary string) string
- func DownloadFile(clientURL string, fullPath string) error
- func InstalledPackagesFile() (string, error)
- func IsBinaryWithProperVersionInstalled(binary string, expectedVersion string, versionExtractor VersionExtractor) (bool, error)
- func LoadInstalledPackages() (map[string]string, error)
- func LookupForBinary(binary string) (string, error)
- func RememberInstalledPackage(packageName string, version string) error
- type VersionExtractor
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 DownloadFile ¶
DownloadFile downloads binary content of given URL into local filesystem.
func InstalledPackagesFile ¶
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 LookupForBinary ¶
func RememberInstalledPackage ¶
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
}
Click to show internal directories.
Click to hide internal directories.