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 ¶
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, supportedImageFormats []string) (string, error)
DownloadFile downloads a file to the cache, optionally copying it to the destination. Returns path in cache.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.