controller

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllNamespaces = ""
)

AllNamespaces as our controller will be looking for events in all namespaces

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Actions []actions.Action
	// contains filtered or unexported fields
}

Controller for checking events with their specific actions

func NewController

func NewController(clientset clientset.Interface, controllerConfig config.Controller) (*Controller, error)

NewController for initializing a Controller

func (*Controller) Add

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

Add function to add a 'create' event to the queue in case of creating a pod

func (*Controller) Delete

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

Delete function to add a 'delete' event to the queue in case of deleting a pod

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(old interface{}, new interface{})

Update function to add an 'update' event to the queue in case of updating a pod

type Event

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

Event indicate the informerEvent

Jump to

Keyboard shortcuts

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