informer_extra

package module
v0.0.0-...-bdaf01c Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListWatchFromFunc

func NewListWatchFromFunc(listFunc cache.ListFunc, watchFunc cache.WatchFunc) *cache.ListWatch

NewListWatchFromFunc creates a new ListWatch from the specified func

Types

type Controller

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

Controller demonstrates how to implement a controller with client-go.

func NewController

func NewController(
	lw cache.ListerWatcher,
	requeueTimes int,
	objType pkg_runtime.Object,
	businessFunc func(key string, count int, object interface{}) error,
	loopDoneErrFunc func(err error, count int, key interface{}, obj interface{}),
	transformer cache.TransformFunc,
	shouldReSync cache.ShouldResyncFunc,
	watchErrorHandler cache.WatchErrorHandler,
	retryOnError bool,
	watchListPageSize int64,
) *Controller

NewController creates a new Controller.

func (*Controller) Run

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

Run begins watching and syncing.

Jump to

Keyboard shortcuts

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