fileutils

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 7 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 CachedFile added in v0.18.0

func CachedFile(f limayaml.File) (string, error)

CachedFile checks if a file is in the cache, validating the digest if it is available. Returns path in cache.

func DownloadFile

func DownloadFile(ctx context.Context, 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