Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveObject ¶
func RemoveObject(name, objHash string)
RemoveObject removes object with objHash in the Cache with the given name from the object Cache.
Types ¶
type ObjectCache ¶
type ObjectCache struct { // Cache is a cache keyed by object Hash() function. Cache map[string]*object.K8sObject Mu *sync.RWMutex }
ObjectCache is a cache of objects,
func GetCache ¶
func GetCache(name string) *ObjectCache
GetCache returns the object Cache for the given name, creating one in the global Cache if needed.
Click to show internal directories.
Click to hide internal directories.