Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + const CodeReview + const Merged + const New + const ReadyForReviewMessageCustomizable + const ReadyForReviewMessageFixed + const ResultError + const ResultSuccess + func ChangedFilesProvider(changeInfo *ChangeInfo) config.ChangedFilesProvider + type ChangeInfo = gerrit.ChangeInfo + type Client struct + func NewClient(instances map[string]map[string]*config.GerritQueryFilter) (*Client, error) + func (c *Client) Account(instance string) (*gerrit.AccountInfo, error) + func (c *Client) ApplyGlobalConfig(orgRepoConfigGetter func() *config.GerritOrgRepoConfigs, ...) + func (c *Client) Authenticate(cookiefilePath, tokenPath string) + func (c *Client) ChangeExist(instance, id string) (bool, error) + func (c *Client) GetBranchRevision(instance, project, branch string) (string, error) + func (c *Client) GetChange(instance, id string, addtionalFields ...string) (*ChangeInfo, error) + func (c *Client) GetMergeableInfo(instance, changeID, revisionID string) (*gerrit.MergeableInfo, error) + func (c *Client) HasRelatedChanges(instance, id, revision string) (bool, error) + func (c *Client) QueryChanges(lastState LastSyncState, rateLimit int) map[string][]ChangeInfo + func (c *Client) QueryChangesForInstance(instance string, lastState LastSyncState, rateLimit int) []ChangeInfo + func (c *Client) QueryChangesForProject(instance, project string, lastUpdate time.Time, rateLimit int, ...) ([]ChangeInfo, error) + func (c *Client) SetReview(instance, id, revision, message string, labels map[string]string) error + func (c *Client) SubmitChange(instance, id string, wait bool) (*ChangeInfo, error) + func (c *Client) UpdateClients(instances map[string]map[string]*config.GerritQueryFilter) error + type FileInfo = gerrit.FileInfo + type LastSyncState map[string]map[string]time.Time + func (l LastSyncState) DeepCopy() LastSyncState + type RevisionInfo = gerrit.RevisionInfo + type SyncTime struct + func NewSyncTime(path string, opener opener, ctx context.Context) *SyncTime + func (st *SyncTime) Current() LastSyncState + func (st *SyncTime) Init(hostProjects map[string]map[string]*config.GerritQueryFilter) error + func (st *SyncTime) Update(newState LastSyncState) error