Compare commits
2 Commits
eeaf366e28
...
7fc7584984
| Author | SHA1 | Date | |
|---|---|---|---|
| 7fc7584984 | |||
| 858c5889f1 |
+10
-9
@@ -1,14 +1,14 @@
|
|||||||
package proxmoxaas_common_lib
|
package proxmoxaas_common_lib
|
||||||
|
|
||||||
type Pool struct {
|
type Pool struct {
|
||||||
PoolID string `json:"poolid"`
|
PoolID string `json:"poolid"`
|
||||||
Path string `json:"-"` // typically /pool/poolid from proxmox, only used internally
|
Path string `json:"-"` // typically /pool/poolid from proxmox, only used internally
|
||||||
Groups []Group `json:"groups"`
|
Groups []Group `json:"groups"`
|
||||||
Resources map[string]any `json:"resources"`
|
Resources map[string]any `json:"resources"`
|
||||||
Templates Templates `json:"templates"`
|
Templates Templates `json:"templates"`
|
||||||
AllowedNodes map[string]bool `json:"nodes-allowed"`
|
AllowedNodes map[string]bool `json:"nodes-allowed"`
|
||||||
VMIDRange VMID `json:"vmid-allowed"`
|
AllowedVMIDRange VMID `json:"vmid-allowed"`
|
||||||
Backups Backups `json:"backups-allowed"` // measured in numbers
|
AllowedBackups Backups `json:"backups-allowed"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// proxmox typically formats as gid-realm for non pve realms
|
// proxmox typically formats as gid-realm for non pve realms
|
||||||
@@ -44,7 +44,8 @@ type VMID struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Backups struct {
|
type Backups struct {
|
||||||
Max int `json:"max"`
|
MaxPerInstance int `json:"max-per-instance"`
|
||||||
|
MaxTotal int `json:"max-total"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Templates struct {
|
type Templates struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user