Documentation ¶
Index ¶
- Constants
- func New(ctx context.Context) *github.RepositoriesService
- type ArchiveFormat
- type ListOptions
- type MockRepositoriesService
- 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
- type RepositoriesService
- type Repository
- type RepositoryContent
- type RepositoryContentGetOptions
- type RepositoryRelease
- type RepositoryTag
- type Response
Constants ¶
View Source
const Tarball = github.Tarball
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArchiveFormat ¶ added in v1.15.0
type ArchiveFormat = github.ArchiveFormat
type ListOptions ¶ added in v1.14.0
type ListOptions = github.ListOptions
type MockRepositoriesService ¶ added in v1.15.0
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 ¶ added in v1.15.0
func (*MockRepositoriesService) Get ¶ added in v1.15.0
func (svc *MockRepositoriesService) Get(ctx context.Context, owner, repo string) (*github.Repository, *github.Response, error)
func (*MockRepositoriesService) GetArchiveLink ¶ added in v1.15.0
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 ¶ added in v1.15.0
func (svc *MockRepositoriesService) GetContents(ctx context.Context, repoOwner, repoName, path string, opt *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)
func (*MockRepositoriesService) GetLatestRelease ¶ added in v1.15.0
func (svc *MockRepositoriesService) GetLatestRelease(ctx context.Context, repoOwner, repoName string) (*github.RepositoryRelease, *github.Response, error)
func (*MockRepositoriesService) GetReleaseByTag ¶ added in v1.15.0
func (svc *MockRepositoriesService) GetReleaseByTag(ctx context.Context, owner, repoName, version string) (*github.RepositoryRelease, *github.Response, error)
func (*MockRepositoriesService) ListReleaseAssets ¶ added in v1.15.0
func (svc *MockRepositoriesService) ListReleaseAssets(ctx context.Context, owner, repo string, id int64, opts *github.ListOptions) ([]*github.ReleaseAsset, *github.Response, error)
func (*MockRepositoriesService) ListReleases ¶ added in v1.15.0
func (svc *MockRepositoriesService) ListReleases(ctx context.Context, owner, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
func (*MockRepositoriesService) ListTags ¶ added in v1.15.0
func (svc *MockRepositoriesService) ListTags(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryTag, *github.Response, error)
type ReleaseAsset ¶ added in v1.14.0
type ReleaseAsset = github.ReleaseAsset
type RepositoriesService ¶ added in v1.15.0
type RepositoriesService = github.RepositoriesService
type Repository ¶ added in v1.14.0
type Repository = github.Repository
type RepositoryContent ¶ added in v1.15.0
type RepositoryContent = github.RepositoryContent
type RepositoryContentGetOptions ¶ added in v1.15.0
type RepositoryContentGetOptions = github.RepositoryContentGetOptions
type RepositoryRelease ¶ added in v1.14.0
type RepositoryRelease = github.RepositoryRelease
type RepositoryTag ¶ added in v1.15.0
type RepositoryTag = github.RepositoryTag
Click to show internal directories.
Click to hide internal directories.