Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Run ¶
type Run struct {
ID int64 `json:"id"`
InstanceID string `json:"instance_id"`
Project string `json:"project"`
Contract string `json:"contract"`
Pass bool `json:"pass"`
Violations json.RawMessage `json:"violations"`
RunAt time.Time `json:"run_at"`
}
Run represents a single compliance check result.
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler periodically validates active agents against their contracts.
func New ¶
func New(db *sql.DB, instanceReg *instances.Registry, specReg *specs.Registry, eventBus *events.Bus, interval time.Duration, logger *slog.Logger) *Scheduler
New creates a new compliance Scheduler.
func (*Scheduler) History ¶
History returns recent compliance runs, optionally filtered by instance_id.
func (*Scheduler) RunAll ¶
RunAll validates all active instances against their project contracts. Returns the list of runs performed.
Click to show internal directories.
Click to hide internal directories.