Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.