resourcecache

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 12 Imported by: 1

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         rorclient.RorClientInterface
}

type ResourceCacheInterface

type ResourceCacheInterface interface {
	// 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)

	DeleteResourceByUID(uid string)

	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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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