type containerGC …
func newContainerGC(client internalapi.RuntimeService, podStateProvider podStateProvider, manager *kubeGenericRuntimeManager, tracer trace.Tracer) *containerGC { … }
type containerGCInfo …
type sandboxGCInfo …
type evictUnit …
type containersByEvictUnit …
type sandboxesByPodUID …
func (cu containersByEvictUnit) NumContainers() int { … }
func (cu containersByEvictUnit) NumEvictUnits() int { … }
type byCreated …
func (a byCreated) Len() int { … }
func (a byCreated) Swap(i, j int) { … }
func (a byCreated) Less(i, j int) bool { … }
type sandboxByCreated …
func (a sandboxByCreated) Len() int { … }
func (a sandboxByCreated) Swap(i, j int) { … }
func (a sandboxByCreated) Less(i, j int) bool { … }
func (cgc *containerGC) enforceMaxContainersPerEvictUnit(ctx context.Context, evictUnits containersByEvictUnit, MaxContainers int) { … }
func (cgc *containerGC) removeOldestN(ctx context.Context, containers []containerGCInfo, toRemove int) []containerGCInfo { … }
func (cgc *containerGC) removeOldestNSandboxes(ctx context.Context, sandboxes []sandboxGCInfo, toRemove int) { … }
func (cgc *containerGC) removeSandbox(ctx context.Context, sandboxID string) { … }
func (cgc *containerGC) evictableContainers(ctx context.Context, minAge time.Duration) (containersByEvictUnit, error) { … }
func (cgc *containerGC) evictContainers(ctx context.Context, gcPolicy kubecontainer.GCPolicy, allSourcesReady bool, evictNonDeletedPods bool) error { … }
func (cgc *containerGC) evictSandboxes(ctx context.Context, evictNonDeletedPods bool) error { … }
func (cgc *containerGC) evictPodLogsDirectories(ctx context.Context, allSourcesReady bool) error { … }
func (cgc *containerGC) GarbageCollect(ctx context.Context, gcPolicy kubecontainer.GCPolicy, allSourcesReady bool, evictNonDeletedPods bool) error { … }