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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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