( ctx context.Context, method string, path string, query url.Values, requestBody any, responseBody any, )
| 5333 | } |
| 5334 | |
| 5335 | func (c *unixSocketClient) doJSON( |
| 5336 | ctx context.Context, |
| 5337 | method string, |
| 5338 | path string, |
| 5339 | query url.Values, |
| 5340 | requestBody any, |
| 5341 | responseBody any, |
| 5342 | ) error { |
| 5343 | response, err := c.doRequest(ctx, method, path, query, requestBody) |
| 5344 | if err != nil { |
| 5345 | return err |
| 5346 | } |
| 5347 | defer func() { |
| 5348 | _ = response.Body.Close() |
| 5349 | }() |
| 5350 | |
| 5351 | return c.decodeJSONResponse(ctx, method, path, response, responseBody) |
| 5352 | } |
| 5353 | |
| 5354 | func (c *unixSocketClient) doAgentJSON( |
| 5355 | ctx context.Context, |
no test coverage detected