Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeFileName ¶ added in v1.1.4
SanitizeFileName creates a flat filename from a URL path.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewHTTPDownloader ¶
func NewHTTPDownloader() *Downloader
NewHTTPDownloader creates a new HTTPDownloader with the given settings.
func (*Downloader) FetchResult ¶
func (httpDownloader *Downloader) FetchResult(ctx context.Context, item downloader.DownloadItem) (string, error)
FetchResult downloads the result of a computation and saves it to a local file.
func (*Downloader) IsInstalled ¶
func (httpDownloader *Downloader) IsInstalled(ctx context.Context) (bool, error)
IsInstalled checks if the downloader is ready to be used.
Click to show internal directories.
Click to hide internal directories.