github

package
v0.0.0-...-d67a5f6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListReleases(owner, repo string, opt *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
	DownloadReleaseAsset(owner, repo string, id int64) (io.ReadCloser, string, error)
}

type GitHubClient

type GitHubClient struct {
	Client *github.Client
	// contains filtered or unexported fields
}

func NewGitHubClient

func NewGitHubClient(token, gitHubBaseURL string) (*GitHubClient, error)

func (*GitHubClient) DownloadReleaseAsset

func (c *GitHubClient) DownloadReleaseAsset(owner, repo string, id int64) (io.ReadCloser, string, error)

func (*GitHubClient) ListReleases

func (c *GitHubClient) ListReleases(owner, repo string, opt *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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