Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChecksumDownloader ¶
type ChecksumDownloaderImpl ¶
type ChecksumDownloaderImpl struct {
// contains filtered or unexported fields
}
func NewChecksumDownloader ¶
func NewChecksumDownloader(gh github.RepositoriesService, rt *runtime.Runtime, httpDownloader HTTPDownloader) *ChecksumDownloaderImpl
func (*ChecksumDownloaderImpl) DownloadChecksum ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader(gh github.RepositoriesService, httpDownloader HTTPDownloader) *Downloader
func (*Downloader) GetReadCloser ¶
func (downloader *Downloader) GetReadCloser(ctx context.Context, logE *logrus.Entry, file *File) (io.ReadCloser, int64, error)
type File ¶
type File struct { Type string RepoOwner string RepoName string Version string Asset string URL string Path string Private bool }
func ConvertPackageToFile ¶
type GitHubContentAPI ¶
type GitHubContentAPI interface {
GetContents(ctx context.Context, repoOwner, repoName, path string, opt *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)
}
type GitHubContentFileDownloader ¶
type GitHubContentFileDownloader struct {
// contains filtered or unexported fields
}
func NewGitHubContentFileDownloader ¶
func NewGitHubContentFileDownloader(gh GitHubContentAPI, httpDL HTTPDownloader) *GitHubContentFileDownloader
func (*GitHubContentFileDownloader) DownloadGitHubContentFile ¶
func (dl *GitHubContentFileDownloader) DownloadGitHubContentFile(ctx context.Context, logE *logrus.Entry, param *domain.GitHubContentFileParam) (*domain.GitHubContentFile, error)
type GitHubReleaseAPI ¶
type GitHubReleaseDownloader ¶
type GitHubReleaseDownloader struct {
// contains filtered or unexported fields
}
func NewGitHubReleaseDownloader ¶
func NewGitHubReleaseDownloader(gh GitHubReleaseAPI, httpDL HTTPDownloader) *GitHubReleaseDownloader
func (*GitHubReleaseDownloader) DownloadGitHubRelease ¶
func (dl *GitHubReleaseDownloader) DownloadGitHubRelease(ctx context.Context, logE *logrus.Entry, param *domain.DownloadGitHubReleaseParam) (io.ReadCloser, int64, error)
type HTTPDownloader ¶
type HTTPDownloader interface {
Download(ctx context.Context, u string) (io.ReadCloser, int64, error)
}
func NewHTTPDownloader ¶
func NewHTTPDownloader(httpClient *http.Client) HTTPDownloader
type MockChecksumDownloader ¶
func (*MockChecksumDownloader) DownloadChecksum ¶
Click to show internal directories.
Click to hide internal directories.