Documentation
¶
Index ¶
- Constants
- func NewAuthClient(ctx context.Context, accessToken string) *http.Client
- type AcceptedError
- type Adaptor
- type ErrorResponse
- type ListOptions
- type Option
- type Organization
- type Repository
- type RepositoryCreateForkOptions
- type RepositoryListByOrgOptions
- type RepositoryListOptions
- type Response
- type TemplateRepoRequest
- type User
Constants ¶
View Source
const (
DefaultHost = "github.com"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AcceptedError ¶
type AcceptedError = github.AcceptedError
type Adaptor ¶
type Adaptor interface {
UserGet(ctx context.Context, user string) (*User, *Response, error)
RepositoryList(ctx context.Context, user string, opts *RepositoryListOptions) ([]*Repository, *Response, error)
RepositoryListByOrg(ctx context.Context, org string, opts *RepositoryListByOrgOptions) ([]*Repository, *Response, error)
RepositoryCreate(ctx context.Context, org string, repo *Repository) (*Repository, *Response, error)
RepositoryCreateFork(ctx context.Context, owner string, repo string, opts *RepositoryCreateForkOptions) (*Repository, *Response, error)
RepositoryCreateFromTemplate(ctx context.Context, templateOwner, templateRepo string, templateRepoReq *TemplateRepoRequest) (*Repository, *Response, error)
RepositoryDelete(ctx context.Context, owner string, repo string) (*Response, error)
RepositoryGet(ctx context.Context, owner string, repo string) (*Repository, *Response, error)
}
type ErrorResponse ¶ added in v2.1.5
type ErrorResponse = github.ErrorResponse
type ListOptions ¶
type ListOptions = github.ListOptions
type Organization ¶
type Organization = github.Organization
type Repository ¶
type Repository = github.Repository
type RepositoryCreateForkOptions ¶
type RepositoryCreateForkOptions = github.RepositoryCreateForkOptions
type RepositoryListByOrgOptions ¶
type RepositoryListByOrgOptions = github.RepositoryListByOrgOptions
type RepositoryListOptions ¶
type RepositoryListOptions = github.RepositoryListOptions
type TemplateRepoRequest ¶ added in v2.1.4
type TemplateRepoRequest = github.TemplateRepoRequest
Click to show internal directories.
Click to hide internal directories.