NewHTTPClient creates a new Proxmox HTTP client with dependency injection.
(httpClient *http.Client, baseURL string, logger interfaces.Logger)
| 24 | |
| 25 | // NewHTTPClient creates a new Proxmox HTTP client with dependency injection. |
| 26 | func NewHTTPClient(httpClient *http.Client, baseURL string, logger interfaces.Logger) *HTTPClient { |
| 27 | return &HTTPClient{ |
| 28 | client: httpClient, |
| 29 | baseURL: baseURL, |
| 30 | logger: logger, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // SetAuthManager sets the auth manager for the HTTP client. |
| 35 | func (hc *HTTPClient) SetAuthManager(authManager *AuthManager) { |
no outgoing calls