common

package
v0.0.0-...-0c92d4c Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0, BSD-3-Clause, ISC, + 2 more Imports: 10 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 {
	Handler
	// contains filtered or unexported fields
}

Controller holds information about the traget and control cluster.

func NewController

func NewController(handler Handler, logger *log.Entry) *Controller

NewController creates a new instance of Controller which in turn is capable of replicating Ingress resources.

func (*Controller) Start

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

Start starts the control loop.

type Handler

type Handler interface {
	Sync(key string) error
	GetInformerSyncs() []cache.InformerSynced
	GetWorkQueue() workqueue.RateLimitingInterface
}

Handler is an interface which this generic controller uses for

Jump to

Keyboard shortcuts

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