Documentation
¶
Index ¶
- func DownloadBinary(downloadConfig DownloadConfig, localPath string, remoteFileName string, ...) error
- func DownloadBinaryWithConfig(config DownloadConfig, localPath string, remoteFileName string, version string, ...) error
- func DownloadBinaryWithFallback(downloadConfig DownloadConfig, localPath string, remoteFileName string, ...) error
- func EnsureDir(dirPath string) error
- func EnsureDirUsingConfig(settingsKey string, homeSubDirPath string) (string, error)
- func GetDirPath(settingsKey string, homeSubDirPath string) (string, error)
- type DownloadConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadBinary ¶
func DownloadBinary(downloadConfig DownloadConfig, localPath string, remoteFileName string, version string) error
func DownloadBinaryWithConfig ¶
func DownloadBinaryWithConfig( config DownloadConfig, localPath string, remoteFileName string, version string, fallbackRemoteFileName string, ) error
DownloadBinaryWithConfig downloads a binary file from a remote URL based on the provided configuration. It saves the file to the specified local path, using a temporary file during the download process.
func EnsureDirUsingConfig ¶
Types ¶
type DownloadConfig ¶
type DownloadConfig struct {
// contains filtered or unexported fields
}
func NewDownloadConfig ¶
func NewDownloadConfig(latestBaseUrlTemplate, versionedBaseUrlTemplate string, extractIfCompressed bool) DownloadConfig
Click to show internal directories.
Click to hide internal directories.