controller

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 18 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 {
	// contains filtered or unexported fields
}

Controller for checking items

func NewController

func NewController(clientset kubernetes.Interface, osClient *routeClient.RouteV1Client, conf config.Configuration, clusterType string, namespace string) *Controller

NewController A Constructor for the Controller to initialize the controller

func (*Controller) Add

func (c *Controller) Add(obj interface{})

Add function to add a 'create' event to the queue

func (*Controller) Delete

func (c *Controller) Delete(obj interface{})

Delete function to add a 'delete' event to the queue

func (*Controller) Run

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

Run function for controller which handles the queue

func (*Controller) Update

func (c *Controller) Update(oldObj interface{}, newObj interface{})

Update function to add an 'update' event to the queue

type Event

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

Event which is used to send additional information than just the key, can have other entiites

Jump to

Keyboard shortcuts

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