downloads

package
v0.0.0-...-63b66d1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlpineDownloader

type AlpineDownloader struct {
	Downloader
}

func NewAlpineDownloader

func NewAlpineDownloader() (d *AlpineDownloader)

func (*AlpineDownloader) GetDownloaderForVersion

func (d *AlpineDownloader) GetDownloaderForVersion(version, arch string) *FileDownloader

type Downloader

type Downloader struct {
	TargetDir       string
	FileMetadatas   []*FileMetadata
	FileDownloaders map[string]*FileDownloader
	// contains filtered or unexported fields
}

func (*Downloader) GetDownloader

func (d *Downloader) GetDownloader(filename string) (fd *FileDownloader)

func (*Downloader) GetMetadata

func (d *Downloader) GetMetadata(filename string) (m *FileMetadata)

func (*Downloader) GetMetadatas

func (d *Downloader) GetMetadatas() []*FileMetadata

func (*Downloader) StartDownload

func (d *Downloader) StartDownload(filename string) (fd *FileDownloader)

type FileDownloader

type FileDownloader struct {
	MetaData *FileMetadata
	// contains filtered or unexported fields
}

func (*FileDownloader) DownloadCompleted

func (fd *FileDownloader) DownloadCompleted() bool

func (*FileDownloader) DownloadVerified

func (fd *FileDownloader) DownloadVerified() bool

func (*FileDownloader) GetTargetFile

func (fd *FileDownloader) GetTargetFile() string

func (*FileDownloader) StartDownload

func (fd *FileDownloader) StartDownload()

type FileMetadata

type FileMetadata struct {
	Name      string            `json:"name"`
	URL       string            `json:"url"`
	Size      int64             `json:"size"`
	Checksums map[string]string `json:"checksums,omitempty"`
	Tags      map[string]string `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

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