library

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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