Compare commits

...

1 Commits

Author SHA1 Message Date
alu 0936e8e5a5 fix VMID Max naming issue,
add mapstructure decode tags
2026-05-22 21:30:01 +00:00
+6 -6
View File
@@ -6,9 +6,9 @@ type Pool struct {
Groups []Group `json:"groups"`
Resources map[string]any `json:"resources"`
Templates Templates `json:"templates"`
AllowedNodes map[string]bool `json:"nodes-allowed"`
AllowedVMIDRange VMID `json:"vmid-allowed"`
AllowedBackups Backups `json:"backups-allowed"`
AllowedNodes map[string]bool `json:"nodes-allowed" mapstructure:"nodes-allowed"`
AllowedVMIDRange VMID `json:"vmid-allowed" mapstructure:"vmid-allowed"`
AllowedBackups Backups `json:"backups-allowed" mapstructure:"backups-allowed"`
}
// proxmox typically formats as gid-realm for non pve realms
@@ -40,12 +40,12 @@ type User struct {
type VMID struct {
Min int `json:"min"`
MAx int `json:"max"`
Max int `json:"max"`
}
type Backups struct {
MaxPerInstance int `json:"max-per-instance"`
MaxTotal int `json:"max-total"`
MaxPerInstance int `json:"max-per-instance" mapstructure:"max-per-instance"`
MaxTotal int `json:"max-total" mapstructure:"max-total"`
}
type Templates struct {