library

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 DownloadBinaryWithFallback

func DownloadBinaryWithFallback(downloadConfig DownloadConfig, localPath string, remoteFileName string, version string, fallbackRemoteFileName string) error

func EnsureDir

func EnsureDir(dirPath string) error

func EnsureDirUsingConfig

func EnsureDirUsingConfig(settingsKey string, homeSubDirPath string) (string, error)

func GetDirPath

func GetDirPath(settingsKey string, homeSubDirPath string) (string, error)

Types

type DownloadConfig

type DownloadConfig struct {
	// contains filtered or unexported fields
}

func NewDownloadConfig

func NewDownloadConfig(latestBaseUrlTemplate, versionedBaseUrlTemplate string, extractIfCompressed bool) DownloadConfig

Jump to

Keyboard shortcuts

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