Adding migration support to LDAP from other account types (#3655)

This commit is contained in:
Christopher Speller
2016-07-26 17:39:51 -04:00
committed by Joram Wilander
parent 528890dba0
commit f5375254f9
8 changed files with 154 additions and 6 deletions

View File

@@ -84,6 +84,12 @@ func (task *ScheduledTask) Cancel() {
removeTaskByName(task.Name)
}
// Executes the task immediatly. A recurring task will be run regularally after interval.
func (task *ScheduledTask) Execute() {
task.function()
task.timer.Reset(task.Interval)
}
func (task *ScheduledTask) String() string {
return fmt.Sprintf(
"%s\nInterval: %s\nRecurring: %t\n",