worker

package
v0.0.0-...-93c8805 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	workqueue.RateLimitingInterface
}

Instance is a rate limited work queue. This is used to queue work to be processed instead of performing it as soon as a change happens. This means we can ensure we only process a fixed amount of resources at a time, and makes it easy to ensure we are never processing the same item simultaneously in two different workers.

func (*Instance) Enqueue

func (w *Instance) Enqueue(obj interface{})

enqueueScenario takes a Foo resource and converts it into a namespace/name string which is then put onto the work queue. This method should *not* be passed resources of any type other than Foo.

Jump to

Keyboard shortcuts

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