Telmate / proxmox-api-go

Consume the proxmox API in golang
MIT License
370 stars 234 forks source link

feat: cache proxmox version in `Client` #312

Closed Tinyblargon closed 7 months ago

Tinyblargon commented 7 months ago

Add Version() to the Client struct to return the cached PVE version and fetch it when we have no version yet. This does add a mutex to the Client if this becomes a performance issue we can fix it using channels, but this would be more complex and require a dispatch thread.

closes #309