manager

package
v0.0.0-...-5e74752 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("task ID not found")
)

Functions

func CreateTask

func CreateTask(taskdata icarus.TaskData) (ID int, t *task.Task, err error)

func DeleteTask

func DeleteTask(ID int) error

Once a task is deleted, it would be stopped first.

func GetTask

func GetTask(ID int) (*task.Task, error)

func GetTaskData

func GetTaskData(ID int) (icarus.TaskData, error)

func InitManager

func InitManager()

This function will panic on any error it encounters.

func ListTasks

func ListTasks() []*task.Task

func ListTasksData

func ListTasksData() []icarus.TaskData

Types

type TaskEntry

type TaskEntry struct {
	Header   icarus.TaskData
	Instance *task.Task
}

Jump to

Keyboard shortcuts

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