f-34: metadata: update api #34
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
ae81158b2d
commit
e2fbb5fb7a
3 changed files with 144 additions and 11 deletions
|
|
@ -45,13 +45,18 @@ type VMStorage struct {
|
|||
Dev string `json:"dev"`
|
||||
}
|
||||
|
||||
type VMMetadata struct {
|
||||
Password string `json:"password"`
|
||||
SSHKey string `json:"sshkey"`
|
||||
UserData string `json:"user_data"`
|
||||
}
|
||||
|
||||
type VMCreateRequest struct {
|
||||
Name string `json:"name"`
|
||||
Memory int `json:"memory"`
|
||||
CPUs int `json:"cpus"`
|
||||
UEFI bool `json:"uefi"`
|
||||
Password string `json:"password"`
|
||||
SSHKey string `json:"sshkey"`
|
||||
Metadata VMMetadata `json:"metadata"`
|
||||
Interfaces []VMInterface `json:"interfaces"`
|
||||
Storage []VMStorage `json:"storage"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue