task

package
v2.2.0-rc75 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeleteNamespace        = "delete_namespace"
	DeleteQuotaByNamespace = "delete_quota_by_namespace"
	DeleteIndexByNamespace = "delete_index_by_namespace"
)

Variables

View Source
var (
	ErrTaskNotExist    = errors.New("failed to get task, task not exist.")
	ErrProcessConflict = errors.New("failed to add processor, the processor already exist.")
	ErrProcessNotExist = errors.New("failed to unregister processor, the processor not exist.")
)
View Source
var TaskRegister = taskRegister{
	// contains filtered or unexported fields
}

Functions

func NewNamespaceProcessor

func NewNamespaceProcessor(cfg *config.CloudConfig) (*namespaceProcessor, error)

func RegisterNamespaceProcessor

func RegisterNamespaceProcessor(cfg *config.CloudConfig) error

Types

type ProcessorFunc

type ProcessorFunc func(task *models.Task) error

type ProcessorList

type ProcessorList []processor

type TaskManager

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

func NewTaskManager

func NewTaskManager(cfg *config.CloudConfig) (*TaskManager, error)

func (*TaskManager) Close

func (m *TaskManager) Close()

func (*TaskManager) FetchTask

func (m *TaskManager) FetchTask()

func (*TaskManager) RunTasks

func (m *TaskManager) RunTasks()

func (*TaskManager) Start

func (m *TaskManager) Start()

Jump to

Keyboard shortcuts

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