github

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, params ClientParams) (*github.Client, error)

Types

type ClientParams

type ClientParams struct {
	Token      string
	BaseURL    string
	UploadURL  string
	Enterprise bool
}

type DonwnloadAssetParams

type DonwnloadAssetParams struct {
	ID    int64
	Repo  string
	Owner string
}

type DownloadReleaseAssetClient

type DownloadReleaseAssetClient interface {
	DownloadReleaseAsset(ctx context.Context, owner, repo string, id int64) (rc io.ReadCloser, redirectURL string, err error)
}

type GetLatestReleaseClient

type GetLatestReleaseClient interface {
	GetLatestRelease(ctx context.Context, owner, repo string) (*github.RepositoryRelease, *github.Response, error)
}

type GetLatestReleaseParams

type GetLatestReleaseParams struct {
	Owner string
	Repo  string
}

type GetReleaseByTagParams

type GetReleaseByTagParams struct {
	Owner string
	Repo  string
	Tag   string
}

type GetReleasesByTagClient

type GetReleasesByTagClient interface {
	GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*github.RepositoryRelease, *github.Response, error)
}

Jump to

Keyboard shortcuts

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