Documentation
¶
Index ¶
- type Client
- func (c *Client) GetContributors(ctx context.Context, owner, repo string) ([]*github.Contributor, error)
- func (c *Client) GetOrgRepositories(ctx context.Context, organization string, opts GetOrgRepositoriesOptions) ([]*github.Repository, error)
- func (c *Client) GetRepository(ctx context.Context, owner, repo string) (*github.Repository, error)
- func (c *Client) GetUserRepositories(ctx context.Context, user string, opts GetUserRepositoriesOptions) ([]*github.Repository, error)
- type GetOrgRepositoriesOptions
- type GetUserRepositoriesOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewGitHubAPIClient ¶
NewGitHubAPIClient creates and returns a new GitHub API client.
func (*Client) GetContributors ¶
func (c *Client) GetContributors(ctx context.Context, owner, repo string) ([]*github.Contributor, error)
GetContributors returns the contributors of the given owner and repository. It only returns the first 5 pages.
func (*Client) GetOrgRepositories ¶
func (c *Client) GetOrgRepositories(ctx context.Context, organization string, opts GetOrgRepositoriesOptions) ([]*github.Repository, error)
GetOrgRepositories returns the repositories of the given organization.
func (*Client) GetRepository ¶
GetRepository returns the repository by given owner and name.
func (*Client) GetUserRepositories ¶
func (c *Client) GetUserRepositories(ctx context.Context, user string, opts GetUserRepositoriesOptions) ([]*github.Repository, error)
GetUserRepositories returns the repositories of the given user.
type GetOrgRepositoriesOptions ¶
type GetOrgRepositoriesOptions struct {
Fork bool
}
type GetUserRepositoriesOptions ¶
type GetUserRepositoriesOptions struct {
Fork bool
}
Click to show internal directories.
Click to hide internal directories.