http

package
v1.3.2-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeFileName added in v1.1.4

func SanitizeFileName(fullURL string) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL