MCPcopy Create free account
hub / github.com/aptly-dev/aptly / GetTaskDetailByID

Method GetTaskDetailByID

task/list.go:170–183  ·  view source on GitHub ↗

GetTaskDetailByID returns detail of task with given id

(ID int)

Source from the content-addressed store, hash-verified

168
169// GetTaskDetailByID returns detail of task with given id
170func (list *List) GetTaskDetailByID(ID int) (interface{}, error) {
171 task, err := list.GetTaskByID(ID)
172
173 if err != nil {
174 return nil, err
175 }
176
177 detail := task.detail.Load()
178 if detail == nil {
179 return struct{}{}, nil
180 }
181
182 return detail, nil
183}
184
185// GetTaskReturnValueByID returns process return value of task with given id
186func (list *List) GetTaskReturnValueByID(ID int) (*ProcessReturnValue, error) {

Callers 2

TestListMethod · 0.95
apiTasksDetailShowFunction · 0.80

Calls 1

GetTaskByIDMethod · 0.95

Tested by 1

TestListMethod · 0.76