Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a645b9aa16 |
@@ -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"`
|
||||||
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user