Documentation ¶
Overview ¶
Package download helps download releases of binaries for using in end to end service testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader(timeout time.Duration, dir string) (*Downloader, error)
func (*Downloader) Download ¶
Download downloads the file from the rawURL, to a location rooted at the location specified when constructing the downloader nested to a file location based on the path part of the rawURL.
func (*Downloader) Remove ¶
func (d *Downloader) Remove(rawURL string) error
Remove removes any file that the downloader had previously downloaded from the rawURL
Click to show internal directories.
Click to hide internal directories.