Documentation
¶
Index ¶
Constants ¶
View Source
const ( Owner = "UnstoppableMango" Repo = "tdl" )
Variables ¶
View Source
var DefaultClient = NewClient( github.NewClient(http.DefaultClient), )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
BaseURL() string
DownloadReleaseAsset(ctx context.Context, owner string, repo string, id int64, followRedirectsClient *http.Client) (io.ReadCloser, string, error)
GetReleaseByTag(ctx context.Context, owner string, repo string, tag string) (*github.RepositoryRelease, *github.Response, error)
}
type Option ¶
type Option func(*release)
func WithArchiveContents ¶
func WithClient ¶
func WithProgress ¶
func WithProgress(report progress.ReportFunc) Option
func WithRepository ¶
type Release ¶
func NewRelease ¶
type ReleaseAsset ¶
type ReleaseAsset = github.ReleaseAsset
type RepositoryRelease ¶
type RepositoryRelease = github.RepositoryRelease
Click to show internal directories.
Click to hide internal directories.