reconciler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkQueueSubsystem         = "workqueue"
	DepthKey                   = "depth"
	AddsKey                    = "adds_total"
	QueueLatencyKey            = "queue_duration_seconds"
	WorkDurationKey            = "work_duration_seconds"
	UnfinishedWorkKey          = "unfinished_work_seconds"
	LongestRunningProcessorKey = "longest_running_processor_seconds"
	RetriesKey                 = "retries_total"
)

Metrics subsystem and all keys used by the workqueue.

View Source
const LABEL_HCG_MANAGED = "kuadrant.dev/hcg.managed"

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Name    string
	Queue   workqueue.RateLimitingInterface
	Process func(context.Context, string) error
	Logger  logr.Logger
}

func NewController

func NewController(name string, queue workqueue.RateLimitingInterface) *Controller

func (*Controller) Enqueue

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

func (*Controller) EnqueueAfter

func (c *Controller) EnqueueAfter(obj interface{}, dur time.Duration)

func (*Controller) Start

func (c *Controller) Start(ctx context.Context, numThreads int)

type ControllerConfig

type ControllerConfig struct {
	NameSuffix string
}

func (*ControllerConfig) GetName

func (c *ControllerConfig) GetName(defaultName string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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