adapter

package
v0.0.0-...-97238d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL