Get performs a GET request to the Proxmox API.
(ctx context.Context, path string, result *map[string]interface{})
| 43 | |
| 44 | // Get performs a GET request to the Proxmox API. |
| 45 | func (hc *HTTPClient) Get(ctx context.Context, path string, result *map[string]interface{}) error { |
| 46 | return hc.doRequest(ctx, "GET", path, nil, result) |
| 47 | } |
| 48 | |
| 49 | // Post performs a POST request to the Proxmox API. |
| 50 | func (hc *HTTPClient) Post(ctx context.Context, path string, data interface{}, result *map[string]interface{}) error { |