f-34: metadata: update api #34

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-08-24 22:27:36 +02:00
commit e2fbb5fb7a
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
3 changed files with 144 additions and 11 deletions

View file

@ -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"`
}