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 ¶ added in v1.3.824
InstalledPackagesFile returns absolute path to binaries.yml file used to store version of installed packages.
func IsBinaryWithProperVersionInstalled ¶ added in v1.3.824
func IsBinaryWithProperVersionInstalled(binary string, expectedVersion string, versionExtractor VersionExtractor) (bool, error)
func LoadInstalledPackages ¶ added in v1.3.824
func LookupForBinary ¶
func RememberInstalledPackage ¶ added in v1.3.824
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.