feat: add support for injected cron entries

This allows alternative plugins - such as dokku-letsencrypt - to inject scheduled cron tasks into the cron system used by Dokku. Cron systems can choose to include or not include a cron task based on the specified scheduler, and can also optionally use a third parameter to store arbitrary information.
This commit is contained in:
Jose Diaz-Gonzalez
2021-02-07 16:17:33 -05:00
parent e7d9d6b19e
commit be84325de1
10 changed files with 164 additions and 13 deletions

View File

@@ -18,6 +18,8 @@ func main() {
var err error
switch trigger {
case "cron-write":
err = cron.TriggerCronWrite()
case "post-delete":
err = cron.TriggerPostDelete()
case "post-deploy":