fileutils

package
v2.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 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

func CachedFile(f limatype.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 limatype.File, decompress bool, description string, expectedArch limatype.Arch) (string, error)

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

func Errors

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