queue

package
v0.0.0-...-f6121d7 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enqueue

func Enqueue(queue workqueue.RateLimitingInterface, obj interface{})

Types

type QueueingEventHandler

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

QueueingEventHandler queues the key for the object on add and update events

func NewEventHandler

func NewEventHandler(queue workqueue.RateLimitingInterface, enqueueUpdate func(oldObj, newObj interface{}) bool) *QueueingEventHandler

func NewObservableHandler

func NewObservableHandler(queue workqueue.RateLimitingInterface, enableStatusSubresource bool) *QueueingEventHandler

func NewObservableUpdateHandler

func NewObservableUpdateHandler(queue workqueue.RateLimitingInterface, enableStatusSubresource bool) *QueueingEventHandler

func (*QueueingEventHandler) OnAdd

func (h *QueueingEventHandler) OnAdd(obj interface{})

func (*QueueingEventHandler) OnDelete

func (h *QueueingEventHandler) OnDelete(obj interface{})

func (*QueueingEventHandler) OnUpdate

func (h *QueueingEventHandler) OnUpdate(oldObj, newObj interface{})

type Worker

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

Worker continuously runs a Reconcile function against a message Queue

func New

func New(name string, maxRetries, threadiness int, fn func(key string) error) *Worker

func (*Worker) GetQueue

func (w *Worker) GetQueue() workqueue.RateLimitingInterface

func (*Worker) Run

func (w *Worker) Run(shutdown <-chan struct{})

Run schedules a routine to continuously process Queue messages until shutdown is closed

Jump to

Keyboard shortcuts

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