Documentation ¶
Index ¶
Constants ¶
View Source
const DownloadTimeout = 300
Variables ¶
This section is empty.
Functions ¶
func NewGitHubClient ¶
NewGitHubClient creates a new github.Client.
func NewGitHubDownloader ¶
NewGitHubDownloader creates a new vendors.Downloader that can download content from GitHub.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func (*Downloader) Download ¶
func (d *Downloader) Download( ctx context.Context, downloadDir string, firmware *serverservice.ComponentFirmwareVersion, ) (string, error)
Download will download the file for the given firmware from GitHub into the downloadDir, and returns the full path to the downloaded file.
Click to show internal directories.
Click to hide internal directories.