WIP: generic activation through + new interval-based replication trigger

This commit is contained in:
Christian Schwarz
2023-12-22 14:00:20 +00:00
parent ebc46cf1c0
commit b0caa2d151
11 changed files with 197 additions and 43 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import (
"fmt"
"github.com/zrepl/zrepl/config"
"github.com/zrepl/zrepl/daemon/job/trigger"
"github.com/zrepl/zrepl/zfs"
)
@@ -17,7 +18,7 @@ const (
)
type Snapper interface {
Run(ctx context.Context, snapshotsTaken chan<- struct{})
Run(ctx context.Context, snapshotsTaken *trigger.Trigger)
Report() Report
}