Documentation ¶
Overview ¶
Package adapter implements a controller that interacts with gerrit instances
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller manages gerrit changes.
func NewController ¶
func NewController(lastSyncFallback, cookiefilePath string, projects map[string][]string, kc *kube.Client, ca *config.Agent) (*Controller, error)
NewController returns a new gerrit controller client
func (*Controller) ProcessChange ¶
func (c *Controller) ProcessChange(instance string, change client.ChangeInfo) error
ProcessChange creates new presubmit prowjobs base off the gerrit changes
func (*Controller) SaveLastSync ¶
func (c *Controller) SaveLastSync(lastSync time.Time) error
SaveLastSync saves last sync time in Unix to a volume
func (*Controller) Sync ¶
func (c *Controller) Sync() error
Sync looks for newly made gerrit changes and creates prowjobs according to specs
Click to show internal directories.
Click to hide internal directories.