reimplement synchronization for sync methods

This commit is contained in:
2025-11-09 23:59:19 +00:00
parent 79eecdf211
commit d5fea5e7b8
3 changed files with 170 additions and 148 deletions

View File

@@ -9,7 +9,7 @@ import (
type Cluster struct {
lock sync.Mutex
pve ProxmoxClient
Nodes map[string]*Node
Nodes map[string]*Node `json:"nodes"`
}
type Node struct {
@@ -88,7 +88,6 @@ type Device struct {
Vendor_Name string `json:"vendor_name"`
Functions map[FunctionID]*Function `json:"functions"`
Reserved bool `json:"reserved"`
Value string
}
type FunctionID string