Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reaper ¶
type Reaper struct {
// contains filtered or unexported fields
}
Reaper is an object that does periodic cleanup
func NewReaper ¶
func NewReaper(lp locker.LockProvider, dl persistence.DataLayer, es spawner.EnvironmentSpawner, rc ghclient.RepoClient, mc ReaperMetricsCollector, globalLimit uint, logger *log.Logger) *Reaper
NewReaper returns a Reaper object using the supplied dependencies
type ReaperMetricsCollector ¶
type ReaperMetricsCollector interface {
Pruned(int)
Reaped(string, string, models.QADestroyReason, error)
EnvironmentCount(string, models.EnvironmentStatus, uint)
}
Click to show internal directories.
Click to hide internal directories.