crier

package
v0.0.0-...-ce3d181 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package crier reports finished prowjob status to git providers.

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 struct defines how a controller should encapsulate logging, client connectivity, informing (list and watching) queueing, and handling of resource changes

func NewController

func NewController(
	pjclientset clientset.Interface,
	queue workqueue.RateLimitingInterface,
	informer pjinformers.ProwJobInformer,
	reporter reportClient,
	numWorkers int,
	wg *sync.WaitGroup) *Controller

NewController constructs a new instance of the crier controller.

func (*Controller) HasSynced

func (c *Controller) HasSynced() bool

HasSynced allows us to satisfy the Controller interface by wiring up the informer's HasSynced method to it.

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{})

Run is the main path of execution for the controller loop.

Jump to

Keyboard shortcuts

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