Documentation ¶
Index ¶
Constants ¶
View Source
const (
Unit = time.Minute
)
Variables ¶
View Source
var ( Settings = &settings.Settings Log = logr.WithName("reaper") )
Functions ¶
This section is empty.
Types ¶
type BucketReaper ¶
BucketReaper bucket reaper.
func (*BucketReaper) Run ¶
func (r *BucketReaper) Run()
Run Executes the reaper. A bucket is deleted when it is no longer referenced and the TTL has expired.
type FileReaper ¶ added in v0.1.0
FileReaper file reaper.
func (*FileReaper) Run ¶ added in v0.1.0
func (r *FileReaper) Run()
Run Executes the reaper. A file is deleted when it is no longer referenced and the TTL has expired.
type GroupReaper ¶
GroupReaper reaps task groups.
func (*GroupReaper) Run ¶
func (r *GroupReaper) Run()
Run Executes the reaper. Rules by state:
Created - Deleted after the defined period. Ready (submitted) - Deleted when all of its task have been deleted. - Bucket is released immediately.
type RefCounter ¶ added in v0.1.0
RefCounter provides model inspection for files tagged with: ref:<kind>.
type TaskReaper ¶
TaskReaper reaps tasks.
func (*TaskReaper) Run ¶
func (r *TaskReaper) Run()
Run Executes the reaper. Rules by state:
Created - Deleted after TTL.Created > created timestamp or settings.Task.Reaper.Created. Pending - Deleted after TTL.Pending > created timestamp or settings.Task.Reaper.Created. Postponed - Deleted after TTL.Postponed > created timestamp or settings.Task.Reaper.Created. Running - Deleted after TTL.Running > started timestamp. Succeeded - Deleted after TTL > terminated timestamp or settings.Task.Reaper.Succeeded. - Bucket is released after the defined period. - Pod is deleted after the defined period. Failed - Deleted after TTL > terminated timestamp or settings.Task.Reaper.Failed. - Bucket is released after the defined period. - Pod is deleted after the defined period.
Click to show internal directories.
Click to hide internal directories.