const instrumentationScope …
const imageIndexTupleFormat …
const ImageGarbageCollectedTotalReasonAge …
const ImageGarbageCollectedTotalReasonSpace …
type StatsProvider …
type ImageGCManager …
type ImageGCPolicy …
type realImageGCManager …
type imageCache …
func (i *imageCache) set(images []container.Image) { … }
func (i *imageCache) get() []container.Image { … }
type imageRecord …
func NewImageGCManager(runtime container.Runtime, statsProvider StatsProvider, recorder record.EventRecorder, nodeRef *v1.ObjectReference, policy ImageGCPolicy, tracerProvider trace.TracerProvider) (ImageGCManager, error) { … }
func (im *realImageGCManager) Start() { … }
func (im *realImageGCManager) GetImageList() ([]container.Image, error) { … }
func (im *realImageGCManager) detectImages(ctx context.Context, detectTime time.Time) (sets.Set[string], error) { … }
func (im *realImageGCManager) handleImageVolumes(ctx context.Context, imagesInUse sets.Set[string], container *container.Container, pod *container.Pod, images []container.Image) error { … }
func (im *realImageGCManager) GarbageCollect(ctx context.Context, beganGC time.Time) error { … }
func (im *realImageGCManager) freeOldImages(ctx context.Context, images []evictionInfo, freeTime, beganGC time.Time) ([]evictionInfo, error) { … }
func (im *realImageGCManager) DeleteUnusedImages(ctx context.Context) error { … }
func (im *realImageGCManager) freeSpace(ctx context.Context, bytesToFree int64, freeTime time.Time, images []evictionInfo) (int64, error) { … }
func (im *realImageGCManager) freeImage(ctx context.Context, image evictionInfo, reason string) error { … }
func (im *realImageGCManager) imagesInEvictionOrder(ctx context.Context, freeTime time.Time) ([]evictionInfo, error) { … }
func getImageTuple(imageID, runtimeHandler string) string { … }
func getImageIDFromTuple(image string) string { … }
type evictionInfo …
type byLastUsedAndDetected …
func (ev byLastUsedAndDetected) Len() int { … }
func (ev byLastUsedAndDetected) Swap(i, j int) { … }
func (ev byLastUsedAndDetected) Less(i, j int) bool { … }
func isImageUsed(imageID string, imagesInUse sets.Set[string]) bool { … }