controller

package
v0.0.0-...-f057f80 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 9 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 {
	Logger    *log.Entry
	Clientset kubernetes.Interface
	Queue     workqueue.RateLimitingInterface
	Informer  cache.SharedIndexInformer
	Handler   handler.SimpleHandler
}

Controller struct defines how a controller should encapsulate logging, client connectivity, informing (list and watching) Queueing, and handling of resource changes

func (*Controller) HasSynced

func (c *Controller) HasSynced() bool

HasSynced allows us to satisfy the Controller interface by wiring up the informer's HasSynced method to it

func (*Controller) Run

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

Run is the main path of execution for the controller loop

type TeamController

type TeamController struct {
	Logger    *log.Entry
	Clientset kubernetes.Interface
	Queue     workqueue.RateLimitingInterface
	Informer  cache.SharedIndexInformer
	Handler   handler.TeamHandler
}

Controller struct defines how a controller should encapsulate logging, client connectivity, informing (list and watching) Queueing, and handling of resource changes

func (*TeamController) HasSynced

func (c *TeamController) HasSynced() bool

HasSynced allows us to satisfy the Controller interface by wiring up the informer's HasSynced method to it

func (*TeamController) Run

func (c *TeamController) Run(stopCh <-chan struct{})

Run is the main path of execution for the controller loop

Jump to

Keyboard shortcuts

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