func (c *RefManager) GetRef(id ContainerID) (ref *v1.ObjectReference, ok bool) {
	c.RLock()
	defer c.RUnlock()
	ref, ok = c.containerIDToRef[id]
	return ref, ok
}
GetRef returns the container reference of the given ID, or (nil, false) if none is stored.
package container
import (
	"sync"
	"k8s.io/api/core/v1"
)
type RefManager struct {
	sync.RWMutex
	containerIDToRef map[ContainerID]*v1.ObjectReference
}
func NewRefManager() *RefManager {
	return &RefManager{containerIDToRef: make(map[ContainerID]*v1.ObjectReference)}
}
func (c *RefManager) SetRef(id ContainerID, ref *v1.ObjectReference) {
	c.Lock()
	defer c.Unlock()
	c.containerIDToRef[id] = ref
}
func (c *RefManager) ClearRef(id ContainerID) {
	c.Lock()
	defer c.Unlock()
	delete(c.containerIDToRef, id)
}