worker

package
v0.0.0-...-a134451 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResyncPeriod

func ResyncPeriod(c *config.Config) func() time.Duration

ResyncPeriod returns a function which generates a duration each time it is invoked; this is so that multiple controllers don't get into lock-step and all hammer the apiserver with list requests simultaneously.

Types

type Controller

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

func NewController

func NewController(config *config.Config, stageInformer informerv1.StageInformer, client client.Interface) (*Controller, error)

func (*Controller) Run

func (jm *Controller) Run(ctx context.Context, workers int)

type GenericWorkerServer

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

func NewGenericWorkerServer

func NewGenericWorkerServer(name string, config *config.Config) *GenericWorkerServer

func (*GenericWorkerServer) Run

func (g *GenericWorkerServer) Run(stopCh <-chan struct{}) error

type Instance

type Instance struct {
	GenericWorkerServer *GenericWorkerServer
}

func NewInstance

func NewInstance(config *config.Config) *Instance

func (*Instance) Destroy

func (i *Instance) Destroy()

func (*Instance) Run

func (i *Instance) Run(stopCh <-chan struct{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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