( ctx context.Context, id string, blockID string, request ClearTaskBlockRequest, )
| 4482 | } |
| 4483 | |
| 4484 | func (c *unixSocketClient) ClearTaskBlock( |
| 4485 | ctx context.Context, |
| 4486 | id string, |
| 4487 | blockID string, |
| 4488 | request ClearTaskBlockRequest, |
| 4489 | ) (TaskBlockRecord, error) { |
| 4490 | var response contract.TaskBlockResponse |
| 4491 | path := taskBlocksPath(id) + "/" + url.PathEscape(strings.TrimSpace(blockID)) + "/clear" |
| 4492 | if err := c.doJSON(ctx, http.MethodPost, path, nil, request, &response); err != nil { |
| 4493 | return TaskBlockRecord{}, err |
| 4494 | } |
| 4495 | return response.Block, nil |
| 4496 | } |
| 4497 | |
| 4498 | func (c *unixSocketClient) ClearTaskBlockAsAgent( |
| 4499 | ctx context.Context, |
nothing calls this directly
no test coverage detected