Put performs a PUT request to the Proxmox API.
(ctx context.Context, path string, data interface{}, result *map[string]interface{})
| 53 | |
| 54 | // Put performs a PUT request to the Proxmox API. |
| 55 | func (hc *HTTPClient) Put(ctx context.Context, path string, data interface{}, result *map[string]interface{}) error { |
| 56 | return hc.doRequest(ctx, "PUT", path, data, result) |
| 57 | } |
| 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 { |