Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadWithChecksum ¶
func DownloadWithChecksum(ctx context.Context, d types.Downloader, url, expectedChecksum string) ([]byte, error)
DownloadWithChecksum downloads a file and verifies its checksum
Types ¶
type DefaultDownloader ¶
DefaultDownloader implements the Downloader interface using HTTP
func NewDefaultDownloader ¶
func NewDefaultDownloader() *DefaultDownloader
NewDefaultDownloader creates a new HTTP downloader
type TarGzExtractor ¶
type TarGzExtractor struct{}
TarGzExtractor extracts tar.gz archives
func (*TarGzExtractor) Extract ¶
func (e *TarGzExtractor) Extract(src, dest string) error
Extract extracts a tar.gz archive
type ZipExtractor ¶
type ZipExtractor struct{}
ZipExtractor extracts zip archives
func (*ZipExtractor) Extract ¶
func (e *ZipExtractor) Extract(src, dest string) error
Extract extracts a zip archive
Click to show internal directories.
Click to hide internal directories.