Delete performs a DELETE request to the Proxmox API.
(ctx context.Context, path string, result *map[string]interface{})
| 58 | |
| 59 | // Delete performs a DELETE request to the Proxmox API. |
| 60 | func (hc *HTTPClient) Delete(ctx context.Context, path string, result *map[string]interface{}) error { |
| 61 | return hc.doRequest(ctx, "DELETE", path, nil, result) |
| 62 | } |
| 63 | |
| 64 | // GetWithRetry performs a GET request with retry logic. |
| 65 | func (hc *HTTPClient) GetWithRetry(ctx context.Context, path string, result *map[string]interface{}, maxRetries int) error { |