Documentation ¶
Index ¶
- type Client
- func (i *Client) Create(ctx context.Context, ev gogh.Env, repo *gogh.Repo, description string, ...) (newRepo *github.Repository, retErr error)
- func (i *Client) Fork(ctx context.Context, ev gogh.Env, repo *gogh.Repo, organization string) (result *gogh.Repo, retErr error)
- func (i *Client) Repos(ctx context.Context, ev gogh.Env, user string, own, collaborate, member bool, ...) ([]string, error)
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 (*Client) Create ¶
func (i *Client) Create( ctx context.Context, ev gogh.Env, repo *gogh.Repo, description string, homepage *url.URL, private bool, ) (newRepo *github.Repository, retErr error)
Create new repository.
func (*Client) Fork ¶
func (i *Client) Fork( ctx context.Context, ev gogh.Env, repo *gogh.Repo, organization string, ) (result *gogh.Repo, retErr error)
Fork will fork a repository for yours (or for the organization).
func (*Client) Repos ¶
func (i *Client) Repos(ctx context.Context, ev gogh.Env, user string, own, collaborate, member bool, visibility, sort, direction string) ([]string, error)
Repos will get a list of repositories for a user. Parameters:
- user: Who has the repositories. Empty means the token user
- own: Include repositories that are owned by the user
- collaborate: Include repositories that the user has been added to as a collaborator
- member: Include repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on
- visibility: Can be one of all, public, or private
- sort: Can be one of created, updated, pushed, full_name
- direction: Can be one of asc or desc default. Default means asc when using full_name, otherwise desc
Returns:
List of the url for repoisitories
Click to show internal directories.
Click to hide internal directories.