Documentation
¶
Overview ¶
Package cron is a minimal standard 5-field cron parser/matcher (minute, hour, day-of-month, month, day-of-week). It supports "*", lists ("a,b"), ranges ("a-b"), and steps ("*/n", "a-b/n") — enough to express the panel's backup schedules without pulling in a dependency. Matching uses Vixie-cron semantics: when both day-of-month and day-of-week are restricted, a tick matches if EITHER does.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
Schedule is a parsed cron expression. Each field is a bitmask of allowed values.
Click to show internal directories.
Click to hide internal directories.