Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSchemeNotSupported = errors.New("download not supported for given scheme") ErrArchiveFormatNotSupported = errors.New("archive format not supported") ErrInvalidChecksumFormat = errors.New("invalid checksum format") ErrChecksumAlgoNotSupported = errors.New("checksum algorithm not supported") )
View Source
var ErrChecksumMismatch = errors.New("checksum mismatch")
Functions ¶
This section is empty.
Types ¶
type DataGetter ¶
type DataGetter struct{}
type Decompressor ¶
type Downloader ¶
type Downloader struct {
Src string
Dst string
Getters map[string]Getter
Decompressors map[string]Decompressor
PostDownloadHook func(string) error
}
func NewDownloader ¶
func NewDownloader(src string, dst string) *Downloader
type HttpGetter ¶
type TarGzipDecompressor ¶
type TarGzipDecompressor struct{}
func (*TarGzipDecompressor) Decompress ¶
Click to show internal directories.
Click to hide internal directories.