Documentation ¶
Index ¶
- func AddCall(scall model.SchedulableCall)
- func AddJob(sjob model.SchedulableJob)
- func DeleteCallByNameAndSpaceGuid(callname, spaceGuid string)
- func DeleteCallByScheduleGuid(scheduleGuid string)
- func DeleteJobByNameAndSpaceGuid(jobname, spaceGuid string)
- func DeleteJobByScheduleGuid(scheduleGuid string)
- func DoCall(scheduledTime time.Time, call model.SchedulableCall)
- func DoJob(scheduledTime time.Time, job model.SchedulableJob)
- func StartHousekeeping()
- func StartRunner()
- type Call
- type Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCall ¶
func AddCall(scall model.SchedulableCall)
AddCall - Add a http call to the list of cron entries
func AddJob ¶
func AddJob(sjob model.SchedulableJob)
AddJob - Add a Runnable job to the list of cron entries
func DeleteCallByNameAndSpaceGuid ¶
func DeleteCallByNameAndSpaceGuid(callname, spaceGuid string)
DeleteCallByNameAndSpaceGuid - Delete a Runnable job from the list of cron Entries
func DeleteCallByScheduleGuid ¶
func DeleteCallByScheduleGuid(scheduleGuid string)
DeleteCallByScheduleGuid - Delete a Runnable call from the list of cron Entries
func DeleteJobByNameAndSpaceGuid ¶
func DeleteJobByNameAndSpaceGuid(jobname, spaceGuid string)
DeleteJobByNameAndSpaceGuid - Delete a Runnable job from the list of cron Entries
func DeleteJobByScheduleGuid ¶
func DeleteJobByScheduleGuid(scheduleGuid string)
DeleteJobByScheduleGuid - Delete a Runnable job from the list of cron Entries
func StartHousekeeping ¶
func StartHousekeeping()
StartHousekeeping - This function starts a loop in his own routine to query cf tasks, and update the histories table with the task state and message, and to clean up histories and schedules table.
func StartRunner ¶
func StartRunner()
StartRunner - The main function to start the cron job. It will start reading the database for schedules and add them all to cron.