mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #312] [MERGED] feat: cache proxmox version in Client #387
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#387
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/312
Author: @Tinyblargon
Created: 2/7/2024
Status: ✅ Merged
Merged: 2/7/2024
Merged by: @Tinyblargon
Base:
master← Head:Feature-#309📝 Commits (1)
dc5c753feat: AddVersiontoClient📊 Changes
2 files changed (+158 additions, -13 deletions)
View changed files
📝
proxmox/client.go(+82 -13)➕
proxmox/client_test.go(+76 -0)📄 Description
Add
Version()to theClientstruct to return the cached PVE version and fetch it when we have no version yet.This does add a mutex to the
Clientif this becomes a performance issue we can fix it using channels, but this would be more complex and require a dispatch thread.closes #309
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
contextfor all api related calls #433