github

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 9 Imported by: ? 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

View Source
const Tarball = github.Tarball

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveFormat

type ArchiveFormat = github.ArchiveFormat

type ListOptions

type ListOptions = github.ListOptions

type MockRepositoriesService

type MockRepositoriesService struct {
	Releases []*github.RepositoryRelease
	Content  *github.RepositoryContent
	Repo     *github.Repository
	Tags     []*github.RepositoryTag
	Asset    string
	Assets   []*github.ReleaseAsset
	URL      *url.URL
}

func (*MockRepositoriesService) DownloadReleaseAsset

func (svc *MockRepositoriesService) DownloadReleaseAsset(ctx context.Context, owner, repoName string, assetID int64, httpClient *http.Client) (io.ReadCloser, string, error)

func (*MockRepositoriesService) Get

func (svc *MockRepositoriesService) GetArchiveLink(ctx context.Context, owner, repo string, archiveformat github.ArchiveFormat, opts *github.RepositoryContentGetOptions, followRedirects bool) (*url.URL, *github.Response, error)

func (*MockRepositoriesService) GetContents

func (*MockRepositoriesService) GetLatestRelease

func (svc *MockRepositoriesService) GetLatestRelease(ctx context.Context, repoOwner, repoName string) (*github.RepositoryRelease, *github.Response, error)

func (*MockRepositoriesService) GetReleaseByTag

func (svc *MockRepositoriesService) GetReleaseByTag(ctx context.Context, owner, repoName, version string) (*github.RepositoryRelease, *github.Response, error)

func (*MockRepositoriesService) ListReleaseAssets

func (svc *MockRepositoriesService) ListReleaseAssets(ctx context.Context, owner, repo string, id int64, opts *github.ListOptions) ([]*github.ReleaseAsset, *github.Response, error)

func (*MockRepositoriesService) ListReleases

func (svc *MockRepositoriesService) ListReleases(ctx context.Context, owner, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)

func (*MockRepositoriesService) ListTags

type ReleaseAsset

type ReleaseAsset = github.ReleaseAsset

type RepositoriesService

type RepositoriesService interface {
	GetArchiveLink(ctx context.Context, owner, repo string, archiveformat github.ArchiveFormat, opts *github.RepositoryContentGetOptions, followRedirects bool) (*url.URL, *github.Response, error)
	GetReleaseByTag(ctx context.Context, owner, repoName, version string) (*github.RepositoryRelease, *github.Response, error)
	DownloadReleaseAsset(ctx context.Context, owner, repoName string, assetID int64, httpClient *http.Client) (io.ReadCloser, string, error)
	GetContents(ctx context.Context, repoOwner, repoName, path string, opt *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)
}

type RepositoriesServiceImpl

type RepositoriesServiceImpl = github.RepositoriesService

type Repository

type Repository = github.Repository

type RepositoryContent

type RepositoryContent = github.RepositoryContent

type RepositoryContentGetOptions

type RepositoryContentGetOptions = github.RepositoryContentGetOptions

type RepositoryRelease

type RepositoryRelease = github.RepositoryRelease

type RepositoryTag

type RepositoryTag = github.RepositoryTag

type Response

type Response = github.Response

Jump to

Keyboard shortcuts

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