common

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRetryParams = retryParams{
	// contains filtered or unexported fields
}
View Source
var ErrNotFound = errors.New("not found")

ErrNotFound is returned when the download fails due to HTTP 404 Not Found.

Functions

func DownloadFile

func DownloadFile(url, destinationDir string, httpTimeout time.Duration, r retryParams) (string, error)

func Extract

func Extract(sourceFile, destinationDir string) error

func Rename added in v0.2.4

func Rename(src, dest string) error

Rename renames src to dest. If the rename operation fails it will attempt to recursively copy the src to dest then delete src.

Types

This section is empty.

Jump to

Keyboard shortcuts

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