Help us shape the future of Go! Take the 2026 Go Developer Survey

workqueue

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceCacheWorkQueue

type ResourceCacheWorkQueue struct {
	*rorresources.ResourceSet
	RetryCount map[string]int
	// contains filtered or unexported fields
}

func NewResourceCacheWorkQueue

func NewResourceCacheWorkQueue() ResourceCacheWorkQueue

func (*ResourceCacheWorkQueue) AddResource

func (wq *ResourceCacheWorkQueue) AddResource(add *rorresources.Resource)

func (*ResourceCacheWorkQueue) AddResourceSet

func (wq *ResourceCacheWorkQueue) AddResourceSet(add *rorresources.ResourceSet)

func (*ResourceCacheWorkQueue) ConsumeWorkQeue

func (wq *ResourceCacheWorkQueue) ConsumeWorkQeue() *ResourceCacheWorkQueue

func (*ResourceCacheWorkQueue) DeepCopy

func (*ResourceCacheWorkQueue) DeleteByUid

func (wq *ResourceCacheWorkQueue) DeleteByUid(uid string)

func (*ResourceCacheWorkQueue) GetQuedResourceByUid

func (wq *ResourceCacheWorkQueue) GetQuedResourceByUid(uid string) *rorresources.Resource

func (*ResourceCacheWorkQueue) GetRetrycount

func (wq *ResourceCacheWorkQueue) GetRetrycount(uid string) int

func (*ResourceCacheWorkQueue) ItemCount

func (wq *ResourceCacheWorkQueue) ItemCount() int

func (*ResourceCacheWorkQueue) NeedToRun

func (wq *ResourceCacheWorkQueue) NeedToRun() bool

func (*ResourceCacheWorkQueue) ReQueue

func (wq *ResourceCacheWorkQueue) ReQueue(wqadd *ResourceCacheWorkQueue)

TODO use reQueueResource to add resources to the work queue

func (*ResourceCacheWorkQueue) ReQueueResource

func (wq *ResourceCacheWorkQueue) ReQueueResource(resource *rorresources.Resource, retrycount int)

func (*ResourceCacheWorkQueue) SetRetrycount

func (wq *ResourceCacheWorkQueue) SetRetrycount(uid string, count int)

Jump to

Keyboard shortcuts

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