Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResourceCache *resourcecache
Functions ¶
func NewEmptyHashList ¶
func NewEmptyHashList() *resourcecachehashlist.HashList
Types ¶
type ResourceCacheConfig ¶
type ResourceCacheConfig struct {
WorkQueueInterval int
RorClient rorclientconfig.RorClientInterface
}
type ResourceCacheInterface ¶
type ResourceCacheInterface interface {
// Init initializes the resource cache (deprecated - use NewResourceCache instead)
Init() error
// CleanupRunning returns whether cleanup is currently running
CleanupRunning() bool
// MarkActive marks a resource as active by its UID
MarkActive(uid string)
// RunWorkQeue processes the work queue
RunWorkQeue()
// AddResource adds a single resource to the work queue
AddResource(resource *rorresources.Resource)
// AddResourceSet adds multiple resources to the work queue
AddResourceSet(resources *rorresources.ResourceSet)
CheckUpdateNeeded(uid string, hash string) bool
GetOwnerref() rorresourceowner.RorResourceOwnerReference
}
ResourceCacheInterface defines the contract for resource cache operations
func NewResourceCache ¶
func NewResourceCache(rcConfig ResourceCacheConfig) (ResourceCacheInterface, error)
Click to show internal directories.
Click to hide internal directories.