[GH-ISSUE #454] Enhance: *Client should be an interface. #115

Open
opened 2026-02-28 00:40:38 +03:00 by kerem · 0 comments
Owner

Originally created by @Tinyblargon on GitHub (Aug 25, 2025).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/454

Originally assigned to: @Tinyblargon on GitHub.

The *Client passed around everywhere should have been an interface.
This will allow for mocking and different implementations depending on PVE version and Authentication method.
The new interface will be called ClientNew this will be renamed to Client once our current client has been obsoleted.
The client will be configured by ConfigClient This will spawn a new client interface.

Originally created by @Tinyblargon on GitHub (Aug 25, 2025). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/454 Originally assigned to: @Tinyblargon on GitHub. The `*Client` passed around everywhere should have been an interface. This will allow for mocking and different implementations depending on PVE version and Authentication method. The new interface will be called `ClientNew` this will be renamed to `Client` once our current client has been obsoleted. The client will be configured by `ConfigClient` This will spawn a new client interface.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#115
No description provided.