Compare commits

...

2 Commits

Author SHA1 Message Date
alu 7fc7584984 improve Pool type member naming 2026-04-24 22:21:04 +00:00
alu 858c5889f1 update backup type with per instance and total backup count max 2026-04-24 17:54:13 +00:00
+10 -9
View File
@@ -1,14 +1,14 @@
package proxmoxaas_common_lib
type Pool struct {
PoolID string `json:"poolid"`
Path string `json:"-"` // typically /pool/poolid from proxmox, only used internally
Groups []Group `json:"groups"`
Resources map[string]any `json:"resources"`
Templates Templates `json:"templates"`
AllowedNodes map[string]bool `json:"nodes-allowed"`
VMIDRange VMID `json:"vmid-allowed"`
Backups Backups `json:"backups-allowed"` // measured in numbers
PoolID string `json:"poolid"`
Path string `json:"-"` // typically /pool/poolid from proxmox, only used internally
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"`
}
// proxmox typically formats as gid-realm for non pve realms
@@ -44,7 +44,8 @@ type VMID struct {
}
type Backups struct {
Max int `json:"max"`
MaxPerInstance int `json:"max-per-instance"`
MaxTotal int `json:"max-total"`
}
type Templates struct {