workqueue

package
v0.0.0-...-8a7802e Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DequeueTotal          = "dequeue_total"
	UnExpectedObjTotal    = "unexpected_obj_total"
	ReconcileSuccTotal    = "reconcile_succ_total"
	ReconcileFailTotal    = "reconcile_fail_total"
	ReconcileTimeDuration = "reconcile_duration"
	RequeueAfterTotal     = "requeue_after_total"
	RequeueRateLimitTotal = "requeue_rate_limit_total"
)

metrics key with labels

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedConfig

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

CompletedConfig wrapper workqueue

func Completed

func Completed(qc *QueueConfig) *CompletedConfig

func (*CompletedConfig) NewQueue

func (cc *CompletedConfig) NewQueue() (api.WorkQueue, error)

NewQueue build queue

type QueueConfig

type QueueConfig struct {
	Name                  string
	GotInterval           time.Duration
	RateLimitTimeInterval time.Duration
	RateLimitTimeMax      time.Duration
	RateLimit             int
	RateBurst             int
	Threadiness           int

	RT      ReconcilerType
	Do      api.Reconciler
	WrapDo  api.WrapReconciler
	EventDo api.EventReonciler
	// contains filtered or unexported fields
}

func NewEventQueueConfig

func NewEventQueueConfig(name string, reconcile api.EventReonciler) *QueueConfig

NewEventQueueConfig build queue which request with clustername and event function

func NewQueueConfig

func NewQueueConfig(reconcile api.Reconciler) *QueueConfig

NewQueueConfig build standard queue

func NewWrapQueueConfig

func NewWrapQueueConfig(name string, reconcile api.WrapReconciler) *QueueConfig

NewWrapQueueConfig build queue which request with clustername

type ReconcilerType

type ReconcilerType int
const (
	Normal ReconcilerType = iota
	Wrapper
	Event
)

Jump to

Keyboard shortcuts

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