type GetObjectTTLFunc …
type GetObjectFunc …
type objectKey …
type objectStoreItem …
type objectData …
type objectStore …
func NewObjectStore(getObject GetObjectFunc, clock clock.Clock, getTTL GetObjectTTLFunc, ttl time.Duration) Store { … }
func isObjectOlder(newObject, oldObject runtime.Object) bool { … }
func (s *objectStore) AddReference(namespace, name string, _ types.UID) { … }
func (s *objectStore) DeleteReference(namespace, name string, _ types.UID) { … }
func GetObjectTTLFromNodeFunc(getNode func() (*v1.Node, error)) GetObjectTTLFunc { … }
func (s *objectStore) isObjectFresh(data *objectData) bool { … }
func (s *objectStore) Get(namespace, name string) (runtime.Object, error) { … }
type cacheBasedManager …
func (c *cacheBasedManager) GetObject(namespace, name string) (runtime.Object, error) { … }
func (c *cacheBasedManager) RegisterPod(pod *v1.Pod) { … }
func (c *cacheBasedManager) UnregisterPod(pod *v1.Pod) { … }
func NewCacheBasedManager(objectStore Store, getReferencedObjects func(*v1.Pod) sets.Set[string]) Manager { … }