github

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Owner = "UnstoppableMango"
	Repo  = "tdl"
)

Variables

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)
}

func NewClient

func NewClient(github *github.Client) Client

type Option

type Option func(*release)

func WithArchiveContents

func WithArchiveContents(path ...string) Option

func WithClient

func WithClient(client Client) Option

func WithOwner

func WithOwner(owner string) Option

func WithProgress

func WithProgress(report progress.ReportFunc) Option

func WithRepo

func WithRepo(repo string) Option

func WithRepository

func WithRepository(owner, repo string) Option

type Release

type Release interface {
	tdl.Plugin
	cache.Cachable
}

func NewRelease

func NewRelease(name, version string, options ...Option) Release

func NewUml2Ts

func NewUml2Ts(options ...Option) Release

type ReleaseAsset

type ReleaseAsset = github.ReleaseAsset

type RepositoryRelease

type RepositoryRelease = github.RepositoryRelease

Jump to

Keyboard shortcuts

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