Extend archive manager

This commit is contained in:
2023-05-15 14:32:23 +02:00
parent 5beb84b575
commit 1ae34c5e10
7 changed files with 222 additions and 5 deletions

View File

@@ -18,6 +18,8 @@ const Version uint64 = 1
type ArchiveBackend interface {
Init(rawConfig json.RawMessage) (uint64, error)
Info()
Exists(job *schema.Job) bool
LoadJobMeta(job *schema.Job) (*schema.JobMeta, error)
@@ -34,6 +36,8 @@ type ArchiveBackend interface {
CleanUp(jobs []*schema.Job)
Clean(before int64, after int64)
Compress(jobs []*schema.Job)
Iter(loadMetricData bool) <-chan JobContainer