add disk type (prefix) to instance volume model

This commit is contained in:
2025-04-08 23:41:33 +00:00
parent 6a65ca2021
commit 4ef3f76589
3 changed files with 27 additions and 1 deletions

View File

@@ -48,8 +48,18 @@ type Instance struct {
configHostPCIs map[string]string
}
var VolumeTypes = []string{
"sata",
"scsi",
"ide",
"rootfs",
"mp",
"unused",
}
type VolumeID string
type Volume struct {
Type string `json:"type"`
Storage string `json:"storage"`
Format string `json:"format"`
Size uint64 `json:"size"`