Documentation
¶
Index ¶
- Constants
- Variables
- func HasCalendarMatch(schedule cron.Schedule, location *time.Location) bool
- func ParseCron(spec string) (cron.Schedule, error)
- func ParsePreflightCron(spec string) (cron.Schedule, error)
- func ParsePreflightLeadTime(value string) (time.Duration, error)
- func ValidPreflightLeadTime(duration time.Duration) bool
Constants ¶
const MaxPreflightLeadTime = 24 * time.Hour
Variables ¶
var ErrInvalidPreflightLeadTime = xerror.InvalidInput(xerror.PipelineTrigger).
Detail("preflight lead time must be a whole-minute duration from 1m through 24h")
Functions ¶
func HasCalendarMatch ¶
HasCalendarMatch probes a fixed window containing a leap day so cron's bounded search does not reject a valid schedule during a long leap-year gap.
func ParseCron ¶
ParseCron accepts standard cron schedules, including descriptors and timezone prefixes.
func ParsePreflightCron ¶
ParsePreflightCron requires occurrences that are independent of the dispatch cursor.
func ValidPreflightLeadTime ¶
Types ¶
This section is empty.