task

package
v3.7.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task interface {
	RunSuccess()
	RunError(err error)
	BeforeRun()
	AfterRun()
	Stop()
	RollBack()
	Run() error
	TaskID() string
	Logger() event.Logger
}

Task 任务接口

type TaskManager

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

func NewTaskManager

func NewTaskManager(appm appm.Manager, statusManager *status.AppRuntimeSyncClient) *TaskManager

func (*TaskManager) NewHorizontalScalingTask

func (t *TaskManager) NewHorizontalScalingTask(modelTask *model.Task, oldReplicas int32, logger event.Logger) Task

NewHorizontalScalingTask 应用水平伸缩

func (*TaskManager) NewRestartTask

func (t *TaskManager) NewRestartTask(modelTask *model.Task, logger event.Logger) Task

NewRestartTask 重启应用任务

func (*TaskManager) NewRollingUpgradeTask

func (t *TaskManager) NewRollingUpgradeTask(modelTask *model.Task, logger event.Logger) Task

TODO: NewRollingUpgradeTask 滚动升级

func (*TaskManager) NewStartTask

func (t *TaskManager) NewStartTask(modelTask *model.Task, logger event.Logger) Task

NewStartTask 启动应用任务

func (*TaskManager) NewStopTask

func (t *TaskManager) NewStopTask(modelTask *model.Task, logger event.Logger) Task

NewStopTask 停止应用任务

Jump to

Keyboard shortcuts

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