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.
Click to show internal directories.
Click to hide internal directories.