SetAPIToken sets the API token for authentication.
(token string)
| 38 | |
| 39 | // SetAPIToken sets the API token for authentication. |
| 40 | func (hc *HTTPClient) SetAPIToken(token string) { |
| 41 | hc.apiToken = token |
| 42 | } |
| 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 { |
no outgoing calls