( ctx context.Context, id string, action string, requestBody any, )
| 5278 | } |
| 5279 | |
| 5280 | func (c *unixSocketClient) taskRunAction( |
| 5281 | ctx context.Context, |
| 5282 | id string, |
| 5283 | action string, |
| 5284 | requestBody any, |
| 5285 | ) (TaskRunRecord, error) { |
| 5286 | var response contract.TaskRunResponse |
| 5287 | path := "/api/task-runs/" + url.PathEscape(id) + "/" + action |
| 5288 | if err := c.doJSON(ctx, http.MethodPost, path, nil, requestBody, &response); err != nil { |
| 5289 | return TaskRunRecord{}, err |
| 5290 | } |
| 5291 | return response.Run, nil |
| 5292 | } |
| 5293 | |
| 5294 | func (c *unixSocketClient) forceTaskRunAction( |
| 5295 | ctx context.Context, |
no test coverage detected