Documentation
¶
Index ¶
- type ResourceCacheWorkQueue
- func (wq *ResourceCacheWorkQueue) AddResource(add *rorresources.Resource)
- func (wq *ResourceCacheWorkQueue) AddResourceSet(add *rorresources.ResourceSet)
- func (wq *ResourceCacheWorkQueue) ConsumeWorkQeue() *ResourceCacheWorkQueue
- func (wq *ResourceCacheWorkQueue) DeepCopy() *ResourceCacheWorkQueue
- func (wq *ResourceCacheWorkQueue) DeleteByUid(uid string)
- func (wq *ResourceCacheWorkQueue) GetQuedResourceByUid(uid string) *rorresources.Resource
- func (wq *ResourceCacheWorkQueue) GetRetrycount(uid string) int
- func (wq *ResourceCacheWorkQueue) ItemCount() int
- func (wq *ResourceCacheWorkQueue) NeedToRun() bool
- func (wq *ResourceCacheWorkQueue) ReQueue(wqadd *ResourceCacheWorkQueue)
- func (wq *ResourceCacheWorkQueue) ReQueueResource(resource *rorresources.Resource, retrycount int)
- func (wq *ResourceCacheWorkQueue) SetRetrycount(uid string, count int)
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 (wq *ResourceCacheWorkQueue) DeepCopy() *ResourceCacheWorkQueue
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)
Click to show internal directories.
Click to hide internal directories.