podterminal/pods/garbageCollector.go

16 lines
164 B
Go
Raw Normal View History

package pods
import (
"time"
)
func GarbageCollector() error {
for {
err := Cleanup()
if err != nil {
return err
}
time.Sleep(time.Minute * 10)
}
}