Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultCrontabFilename represents the default path of crontab file
DefaultCrontabFilename = "/etc/crontab"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schedule ¶
Schedule represents crontab spec and command
func (*Schedule) ConvertToSystemdCalendar ¶
ConvertToSystemdCalendar converts crontab spec format to Systemd Timer format
crontab: https://en.wikipedia.org/wiki/Cron Systemd Timer: https://www.freedesktop.org/software/systemd/man/systemd.time.html
func (*Schedule) NameByRegexp ¶
NameByRegexp returns schedule name extracted by the given regexp
Click to show internal directories.
Click to hide internal directories.