controller

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 24 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 structure

func NewController

func NewController(clients *config.Clients, factories *config.InformerFactories) *Controller

NewController creates a new Controller

func (*Controller) Run

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

Run wait for cache sync then starts the workers

type Key

type Key struct {
	Value string
	// We need that in order to know which namespace triggered the worker
	Invoker string
	// Wether namespace where created or deleted
	Event NamespaceEvent
}

Key represents the objects stored in the queue

type NamespaceEvent

type NamespaceEvent string

NamespaceEvent is an Enum

const (
	Added   NamespaceEvent = "created"
	Deleted NamespaceEvent = "deleted"
)

Values associated to NamespaceEvent

Jump to

Keyboard shortcuts

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