resourceupdatev2

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

package: resourceupdatev2 Path: cmd/agent/services/resourceupdatev2/resourceupdate.go

Index

Constants

This section is empty.

Variables

View Source
var ResourceCache resourcecache

Functions

func InitHashList

func InitHashList() (*apicontractsv2resources.HashList, error)

func InitHashListv2

func InitHashListv2() (*apicontractsv2resources.HashList, error)

func SendResource

func SendResource(action rortypes.ResourceAction, input *unstructured.Unstructured)

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) 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