Documentation ¶
Index ¶
- type Client
- func (c *Client) BranchLink(repoInfo *gitsource.RepoInfo, branch string) string
- func (c *Client) BranchRef(branch string) string
- func (c *Client) CommitLink(repoInfo *gitsource.RepoInfo, commitSHA string) string
- func (c *Client) CreateCommitStatus(repopath, commitSHA string, status gitsource.CommitStatus, ...) (bool, error)
- func (c *Client) CreateDeployKey(repopath, title, pubKey string, readonly bool) error
- func (c *Client) CreateRepoWebhook(repopath, url, secret string) error
- func (c *Client) DeleteDeployKey(repopath, title string) error
- func (c *Client) DeleteRepoWebhook(repopath, u string) error
- func (c *Client) GetCommit(repopath, commitSHA string) (*gitsource.Commit, error)
- func (c *Client) GetFile(repopath, commit, file string) ([]byte, error)
- func (c *Client) GetRef(repopath, ref string) (*gitsource.Ref, error)
- func (c *Client) GetRepoInfo(repopath string) (*gitsource.RepoInfo, error)
- func (c *Client) GetUserInfo() (*gitsource.UserInfo, error)
- func (c *Client) ListUserRepos() ([]*gitsource.RepoInfo, error)
- func (c *Client) ParseWebhook(r *http.Request, secret string) (*types.WebhookData, error)
- func (c *Client) PullRequestLink(repoInfo *gitsource.RepoInfo, prID string) string
- func (c *Client) PullRequestRef(prID string) string
- func (c *Client) RefType(ref string) (gitsource.RefType, string, error)
- func (c *Client) SetHTTPClient(client *http.Client)
- func (c *Client) TagLink(repoInfo *gitsource.RepoInfo, tag string) string
- func (c *Client) TagRef(tag string) string
- func (c *Client) UpdateDeployKey(repopath, title, pubKey string, readonly bool) 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) BranchLink ¶
func (*Client) CommitLink ¶
func (*Client) CreateCommitStatus ¶
func (*Client) CreateDeployKey ¶
func (*Client) CreateRepoWebhook ¶
func (*Client) DeleteDeployKey ¶
func (*Client) DeleteRepoWebhook ¶
func (*Client) GetRepoInfo ¶
func (*Client) ParseWebhook ¶
func (*Client) PullRequestLink ¶
func (*Client) PullRequestRef ¶
func (*Client) SetHTTPClient ¶
SetHTTPClient replaces default http.Client with user given one.
Click to show internal directories.
Click to hide internal directories.