Versions in this module Expand all Collapse all v2 v2.10.1 Aug 18, 2023 v2.9.0 Aug 18, 2023 Changes in this version + const Tarball + type ArchiveFormat = github.ArchiveFormat + type ListOptions = github.ListOptions + type MockRepositoriesService struct + Asset string + Assets []*github.ReleaseAsset + Content *github.RepositoryContent + Releases []*github.RepositoryRelease + Repo *github.Repository + Tags []*github.RepositoryTag + URL *url.URL + func (svc *MockRepositoriesService) DownloadReleaseAsset(ctx context.Context, owner, repoName string, assetID int64, ...) (io.ReadCloser, string, error) + func (svc *MockRepositoriesService) Get(ctx context.Context, owner, repo string) (*github.Repository, *github.Response, error) + func (svc *MockRepositoriesService) GetArchiveLink(ctx context.Context, owner, repo string, archiveformat github.ArchiveFormat, ...) (*url.URL, *github.Response, error) + func (svc *MockRepositoriesService) GetContents(ctx context.Context, repoOwner, repoName, path string, ...) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, ...) + func (svc *MockRepositoriesService) GetLatestRelease(ctx context.Context, repoOwner, repoName string) (*github.RepositoryRelease, *github.Response, error) + func (svc *MockRepositoriesService) GetReleaseByTag(ctx context.Context, owner, repoName, version string) (*github.RepositoryRelease, *github.Response, error) + func (svc *MockRepositoriesService) ListReleaseAssets(ctx context.Context, owner, repo string, id int64, opts *github.ListOptions) ([]*github.ReleaseAsset, *github.Response, error) + func (svc *MockRepositoriesService) ListReleases(ctx context.Context, owner, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error) + func (svc *MockRepositoriesService) ListTags(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryTag, *github.Response, error) + type ReleaseAsset = github.ReleaseAsset + type RepositoriesService interface + DownloadReleaseAsset func(ctx context.Context, owner, repoName string, assetID int64, ...) (io.ReadCloser, string, error) + GetArchiveLink func(ctx context.Context, owner, repo string, archiveformat github.ArchiveFormat, ...) (*url.URL, *github.Response, error) + GetContents func(ctx context.Context, repoOwner, repoName, path string, ...) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, ...) + GetReleaseByTag func(ctx context.Context, owner, repoName, version string) (*github.RepositoryRelease, *github.Response, error) + type RepositoriesServiceImpl = github.RepositoriesService + func New(ctx context.Context) *RepositoriesServiceImpl + type Repository = github.Repository + type RepositoryContent = github.RepositoryContent + type RepositoryContentGetOptions = github.RepositoryContentGetOptions + type RepositoryRelease = github.RepositoryRelease + type RepositoryTag = github.RepositoryTag + type Response = github.Response