Compare commits

..
1 Commits
Author SHA1 Message Date
alu a645b9aa16 add quota related types 2026-07-24 22:00:10 +00:00
2 changed files with 7 additions and 7 deletions
+7
View File
@@ -49,3 +49,10 @@ type VMID struct {
Min int `json:"min" mapstructure:"min"` Min int `json:"min" mapstructure:"min"`
Max int `json:"max" mapstructure:"max"` Max int `json:"max" mapstructure:"max"`
} }
type Templates struct {
Instances struct {
LXC map[string]ResourceTemplate `json:"lxc" mapstructure:"lxc"`
QEMU map[string]ResourceTemplate `json:"qemu" mapstructure:"qemu"`
} `json:"instances"`
}
-7
View File
@@ -56,13 +56,6 @@ type ListResource struct {
Category string Category string
} }
type Templates struct {
Instances struct {
LXC map[string]ResourceTemplate `json:"lxc" mapstructure:"lxc"`
QEMU map[string]ResourceTemplate `json:"qemu" mapstructure:"qemu"`
} `json:"instances"`
}
type ResourceTemplate struct { type ResourceTemplate struct {
Value string `json:"value" mapstructure:"value"` Value string `json:"value" mapstructure:"value"`
Resource struct { Resource struct {