Documentation
¶
Index ¶
- Constants
- func Do(url, method, accessToken string, reader io.Reader) ([]byte, error)
- 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 GerritWebhook
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 BasicAuthTransporter struct {
EncodedUserPass string
}
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)
Click to show internal directories.
Click to hide internal directories.