task

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskAPI

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

func New

func New(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin, bus busTY.Plugin) *TaskAPI

func (*TaskAPI) Add

func (t *TaskAPI) Add(task *taskTY.Config) error

Add task

func (*TaskAPI) Delete

func (t *TaskAPI) Delete(IDs []string) (int64, error)

Delete tasks

func (*TaskAPI) Disable

func (t *TaskAPI) Disable(ids []string) error

Disable task

func (*TaskAPI) Enable

func (t *TaskAPI) Enable(ids []string) error

Enable task

func (*TaskAPI) Get

func (t *TaskAPI) Get(filters []storageTY.Filter) (*taskTY.Config, error)

Get returns a task

func (*TaskAPI) GetByID

func (t *TaskAPI) GetByID(id string) (*taskTY.Config, error)

GetByID returns a task by id

func (*TaskAPI) GetEntityInterface

func (t *TaskAPI) GetEntityInterface() interface{}

func (*TaskAPI) Import

func (t *TaskAPI) Import(data interface{}) error

func (*TaskAPI) List

func (t *TaskAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)

List by filter and pagination

func (*TaskAPI) LoadAll

func (t *TaskAPI) LoadAll()

LoadAll makes tasks alive

func (*TaskAPI) Reload

func (t *TaskAPI) Reload(ids []string) error

Reload task

func (*TaskAPI) Remove

func (t *TaskAPI) Remove(task *taskTY.Config) error

Remove task

func (*TaskAPI) Save

func (t *TaskAPI) Save(task *taskTY.Config) error

Save a task details

func (*TaskAPI) SaveAndReload

func (t *TaskAPI) SaveAndReload(cfg *taskTY.Config) error

SaveAndReload task

func (*TaskAPI) SetState

func (t *TaskAPI) SetState(id string, state *taskTY.State) error

SetState Updates state data

func (*TaskAPI) UnloadAll

func (t *TaskAPI) UnloadAll()

UnloadAll makes stop all tasks

Jump to

Keyboard shortcuts

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