( ctx context.Context, id string, query ToolQuery, )
| 182 | } |
| 183 | |
| 184 | func (c *unixSocketClient) GetToolset( |
| 185 | ctx context.Context, |
| 186 | id string, |
| 187 | query ToolQuery, |
| 188 | ) (ToolsetResponseRecord, error) { |
| 189 | var response ToolsetResponseRecord |
| 190 | path := "/api/toolsets/" + url.PathEscape(strings.TrimSpace(id)) |
| 191 | if err := c.doJSON(ctx, http.MethodGet, path, toolValues(query), nil, &response); err != nil { |
| 192 | return ToolsetResponseRecord{}, err |
| 193 | } |
| 194 | return response, nil |
| 195 | } |
| 196 | |
| 197 | func toolValues(query ToolQuery) url.Values { |
| 198 | values := url.Values{} |