MCPcopy Create free account
hub / github.com/kopia/kopia / handleTaskList

Function handleTaskList

internal/server/api_tasks.go:10–19  ·  view source on GitHub ↗
(_ context.Context, rc requestContext)

Source from the content-addressed store, hash-verified

8)
9
10func handleTaskList(_ context.Context, rc requestContext) (any, *apiError) {
11 tasks := rc.srv.taskManager().ListTasks()
12 if tasks == nil {
13 tasks = []uitask.Info{}
14 }
15
16 return serverapi.TaskListResponse{
17 Tasks: tasks,
18 }, nil
19}
20
21func handleTaskInfo(_ context.Context, rc requestContext) (any, *apiError) {
22 taskID := rc.muxVar("taskID")

Callers

nothing calls this directly

Calls 2

ListTasksMethod · 0.80
taskManagerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…