fileutils

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSkipped = errors.New("skipped to download")

ErrSkipped is returned when the downloader did not attempt to download the specified file.

Functions

func DownloadFile

func DownloadFile(dest string, f limayaml.File, decompress bool, description string, expectedArch limayaml.Arch) (string, error)

DownloadFile downloads a file to the cache, optionally copying it to the destination. Returns path in cache.

func Errors added in v0.15.1

func Errors(errs []error) error

Errors compose multiple into a single error. Errors filters out ErrSkipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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