controllers

package
v0.0.0-...-f358727 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Checker checkerController = &CheckerControllerImpl{}
)
View Source
var (
	Connector connectorController = &ConnectorControllerImpl{
		pendingCheck:  make(chan *types.PendingChecksInfo, 5),
		pendingSubmit: make(chan *types.PendingSubmitInfo, 5),
	}
)

Functions

This section is empty.

Types

type CheckerControllerImpl

type CheckerControllerImpl struct{}

func (*CheckerControllerImpl) ListCheckers

func (controller *CheckerControllerImpl) ListCheckers() error

ListCheckers returns all the checkers for our scheme.

func (*CheckerControllerImpl) PostChecker

func (controller *CheckerControllerImpl) PostChecker(repo, prefix string, update bool) (*types.CheckerInfo, error)

PostChecker creates or changes a checker. It sets up a checker on the given repo, for the given prefix.

type ConnectorControllerImpl

type ConnectorControllerImpl struct {
	// contains filtered or unexported fields
}

func (*ConnectorControllerImpl) PendingLoop

func (controller *ConnectorControllerImpl) PendingLoop()

pendingLoop periodically contacts gerrit to find new checks and submissions to execute. It should be executed in a goroutine.

func (*ConnectorControllerImpl) ServeCheck

func (controller *ConnectorControllerImpl) ServeCheck()

ServeCheck runs the serve loop, dispatching for checks that need it.

func (*ConnectorControllerImpl) ServeSubmit

func (controller *ConnectorControllerImpl) ServeSubmit()

ServeSubmit runs the serve loop, dispatching for submissions that need it.

Jump to

Keyboard shortcuts

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