cluster

package
v0.0.139 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SyncPeriod is the cache sync period.
	SyncPeriod = time.Minute * 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler added in v0.0.118

type EventHandler interface {
	// Add is called when a CRD is created.
	Add(new interface{})

	// Update is called when a CRD is updated.
	Update(old interface{}, new interface{})

	// Delete is called when a CRD is deleted.
	Delete(obj interface{})

	// Start starts the event handler passing it a done channel.
	Start(done chan struct{})
}

EventHandler defines the callback functions for CRD changes

func NewEventHandler added in v0.0.118

func NewEventHandler(jxClient jenkinsv1client.Interface, config config.JXConfig) (EventHandler, error)

NewEventHandler creates a new event handler using the JX REST client. A instance of defaultEventHandler handles syncing of a single CRD type specified via crdType.

Jump to

Keyboard shortcuts

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