Documentation
¶
Overview ¶
Package schedule provides scheduling functionality for automated benchmark tests.
Index ¶
- type Filter
- type Runner
- func (r *Runner) CheckDue() error
- func (r *Runner) ListJobs() []cron.Entry
- func (r *Runner) RefreshSchedule(scheduleID int64) error
- func (r *Runner) RegisterSchedule(scheduleID int64) error
- func (r *Runner) Start() error
- func (r *Runner) Stop()
- func (r *Runner) UnregisterSchedule(scheduleID int64) error
- type Schedule
- type Store
- func (s *Store) Create(schedule *Schedule) error
- func (s *Store) Delete(id int64) error
- func (s *Store) Disable(id int64) error
- func (s *Store) Enable(id int64) error
- func (s *Store) Get(id int64) (*Schedule, error)
- func (s *Store) GetByName(name string) (*Schedule, error)
- func (s *Store) GetDue() ([]*Schedule, error)
- func (s *Store) List(filter Filter) ([]*Schedule, error)
- func (s *Store) Update(schedule *Schedule) error
- func (s *Store) UpdateLastRun(scheduleID, runID int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner manages scheduled test executions
func (*Runner) RefreshSchedule ¶
RefreshSchedule updates a schedule in the runner
func (*Runner) RegisterSchedule ¶
RegisterSchedule adds a schedule to the runner
func (*Runner) UnregisterSchedule ¶
UnregisterSchedule removes a schedule from the runner
type Schedule ¶
type Schedule struct {
ID int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
CronExpr string `json:"cron_expr"`
Plugin string `json:"plugin"`
Params db.JSONData `json:"params"`
Enabled bool `json:"enabled"`
LastRunID *int64 `json:"last_run_id"`
LastRunTime *time.Time `json:"last_run_time"`
NextRunTime *time.Time `json:"next_run_time"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Schedule represents a scheduled test configuration
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store handles schedule persistence
func (*Store) UpdateLastRun ¶
UpdateLastRun updates the last run information for a schedule
Click to show internal directories.
Click to hide internal directories.