Documentation ¶
Index ¶
- Variables
- func DownloadTarGZFile(getFn HTTPGetFunc, url string) (*tar.Reader, error)
- func DownloadZipFile(getFn HTTPGetFunc, url string) (*zip.Reader, error)
- func GetFileFromTarGZ(r *tar.Reader, fileName string) ([]byte, error)
- func GetFileFromZip(r *zip.Reader, fileName string) ([]byte, error)
- func GetTarGZFileFromDisk(fileName string) (*tar.Reader, error)
- func GetZipFileFromDisk(fileName string) (*zip.Reader, error)
- type HTTPGetFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
func DownloadTarGZFile ¶ added in v1.1.20
func DownloadTarGZFile(getFn HTTPGetFunc, url string) (*tar.Reader, error)
DownloadTarGZFile downloads a .tar.gz file from the given url and returns a zip.Reader The getFn matches the signature of http.Get
func DownloadZipFile ¶
func DownloadZipFile(getFn HTTPGetFunc, url string) (*zip.Reader, error)
DownloadZipFile downloads a zipfile from the given url and returns a zip.Reader The getFn matches the signature of http.Get
func GetFileFromTarGZ ¶ added in v1.1.20
func GetFileFromZip ¶ added in v1.1.20
func GetTarGZFileFromDisk ¶ added in v1.1.20
GetTarGZFileFromDisk opens a zipfile from the filesystem and returns a zip.Reader
Types ¶
Click to show internal directories.
Click to hide internal directories.