tasks

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CMD_TASK_PREFIX = "task:"
View Source
const MODE_OVERIDE = SchedulingMode(0x01) // replace task if already scheduled
View Source
const MODE_REPLACE = MODE_OVERIDE | MODE_RESET // replace task and reset task schedule
View Source
const MODE_RESET = SchedulingMode(0x02) // reset actual delay if already scheduled

Variables

This section is empty.

Functions

func TaskReconciler

func TaskReconciler(count int) controller.ConfigurationModifier

Types

type BaseTask

type BaseTask struct {
	// contains filtered or unexported fields
}

func NewBaseTask

func NewBaseTask(ttype, name string) BaseTask

func (*BaseTask) Execute

func (this *BaseTask) Execute(logger logger.LogContext) reconcile.Status

func (*BaseTask) Id

func (this *BaseTask) Id() string

type SchedulingMode

type SchedulingMode byte

type Task

type Task interface {
	Id() string
	Execute(logger logger.LogContext) reconcile.Status
}

type Tasks

type Tasks interface {
	ScheduleTask(Task, SchedulingMode)
}

func GetTaskClient

func GetTaskClient(controller controller.Interface) Tasks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL