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)
type ControllerConfig ¶
type ControllerConfig struct {
NameSuffix string
}
func (*ControllerConfig) GetName ¶
func (c *ControllerConfig) GetName(defaultName string) string
Click to show internal directories.
Click to hide internal directories.