controller

package
v0.0.0-...-d7ce96e Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller is a skeleton for custom controller

func NewController

func NewController(name string, handleResource HandleResource, cacheSyncs ...cache.InformerSynced) *Controller

func (*Controller) Queue

Queue returns the work queue for outside package usage.

func (*Controller) Run

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

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

type HandleResource

type HandleResource func(namespace, name string) error

type JobController

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

func NewJobController

func NewJobController(kubeClient clientset.Interface, jobInformer batchinformers.JobInformer, retentionInSeconds int64) *JobController

Jump to

Keyboard shortcuts

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