Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JobCreator ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(store RunnerStore, creator JobCreator, logger *slog.Logger) *Runner
type RunnerStore ¶
type RunnerStore interface {
ClaimDueScanSchedules(context.Context, time.Time, time.Time, int) ([]model.ScanSchedule, error)
RecordScanScheduleRun(context.Context, string, *time.Time, *string, error) error
StartAutomationRun(context.Context, model.StartAutomationRunRequest) (model.AutomationRun, error)
FinishAutomationRun(context.Context, string, string, json.RawMessage, error) error
}
Click to show internal directories.
Click to hide internal directories.