( ctx context.Context, id string, request CreateTaskBlockRequest, )
| 4433 | } |
| 4434 | |
| 4435 | func (c *unixSocketClient) BlockTask( |
| 4436 | ctx context.Context, |
| 4437 | id string, |
| 4438 | request CreateTaskBlockRequest, |
| 4439 | ) (TaskBlockRecord, error) { |
| 4440 | var response contract.TaskBlockResponse |
| 4441 | if err := c.doJSON(ctx, http.MethodPost, taskBlocksPath(id), nil, request, &response); err != nil { |
| 4442 | return TaskBlockRecord{}, err |
| 4443 | } |
| 4444 | return response.Block, nil |
| 4445 | } |
| 4446 | |
| 4447 | func (c *unixSocketClient) BlockTaskAsAgent( |
| 4448 | ctx context.Context, |
nothing calls this directly
no test coverage detected