Documentation ¶
Index ¶
- Constants
- func Escape(name string) string
- func Unescape(id string) string
- type BasicAuthTransporter
- type Client
- func (c *Client) CompareTwoPatchset(changeID, newPatchSetID, oldPatchSetID string) (bool, error)
- func (c *Client) GetCommit(project string, branch string) (*gerrit.CommitInfo, error)
- func (c *Client) GetCommitByBranch(project string, branch string) (*gerrit.CommitInfo, error)
- func (c *Client) GetCommitByTag(project string, tag string) (*gerrit.CommitInfo, error)
- func (c *Client) GetCurrentVersionByChangeID(name string, pr int) (*gerrit.ChangeInfo, error)
- func (c *Client) ListBranches(project string) ([]string, error)
- func (c *Client) ListProjects() ([]*gerrit.ProjectInfo, error)
- func (c *Client) ListProjectsByKey(keyword string) ([]*gerrit.ProjectInfo, error)
- func (c *Client) ListTags(project string) (result []*gerrit.TagInfo, err error)
- func (c *Client) SetReview(projectName string, changeID int, m, label, score, revision string) error
- type HTTPClient
- type Webhook
Constants ¶
View Source
const ( DefaultNamespace = "default" CodehostTypeGerrit = "gerrit" RemoteName = "koderover" TimeFormat = "2006-01-02 15:04:05.999999999" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicAuthTransporter ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CompareTwoPatchset ¶
CompareTwoPatchset 如果两个Patchset更新的内容相同,返回true,不相同则返回false
func (*Client) GetCommitByBranch ¶
func (*Client) GetCommitByTag ¶
func (*Client) GetCurrentVersionByChangeID ¶
func (*Client) ListProjects ¶
func (c *Client) ListProjects() ([]*gerrit.ProjectInfo, error)
func (*Client) ListProjectsByKey ¶
func (c *Client) ListProjectsByKey(keyword string) ([]*gerrit.ProjectInfo, error)
type HTTPClient ¶
type HTTPClient struct { *httpclient.Client // contains filtered or unexported fields }
func NewHTTPClient ¶
func NewHTTPClient(host, token string) *HTTPClient
func (*HTTPClient) DeleteWebhook ¶ added in v1.9.9
func (c *HTTPClient) DeleteWebhook(repoName, webhookName string) error
func (*HTTPClient) UpsertWebhook ¶ added in v1.9.9
func (c *HTTPClient) UpsertWebhook(repoName, webhookName string, events []string) error
Click to show internal directories.
Click to hide internal directories.