core

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTask added in v0.23.0

func AddTask(ctx context.Context, task Executable) error

func CancelTask added in v0.23.0

func CancelTask(ctx context.Context, id string) error

func ExecCommandString added in v0.23.1

func ExecCommandString(ctx context.Context, cmd string) error

func GetLength added in v0.23.0

func GetLength(ctx context.Context) int

func GetQueuedTasks added in v0.43.0

func GetQueuedTasks(ctx context.Context) []queue.TaskInfo

func GetRunningTasks added in v0.43.0

func GetRunningTasks(ctx context.Context) []queue.TaskInfo

func Run

func Run(ctx context.Context)

Types

type Executable added in v0.43.0

type Executable interface {
	Type() tasktype.TaskType
	Title() string
	TaskID() string
	Execute(ctx context.Context) error
}

Directories

Path Synopsis
tasks

Jump to

Keyboard shortcuts

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