This commit is contained in:
asteam
2025-09-26 12:21:29 +03:00
parent befff7acd9
commit 84a090f9e8
19 changed files with 534 additions and 242 deletions

View File

@@ -663,6 +663,9 @@ type InfoCompute struct {
// Architecture
Arch string `json:"arch"`
// Boot image ID
BootImageID uint64 `json:"boot_image_id"`
// Boot order
BootOrder []string `json:"bootOrder"`
@@ -917,6 +920,9 @@ type RecordCompute struct {
// Architecture
Arch string `json:"arch"`
// Boot image ID
BootImageID uint64 `json:"boot_image_id"`
// Boot order
BootOrder []string `json:"bootOrder"`
@@ -1420,3 +1426,31 @@ type MigrateStorageItem struct {
// Target stack ID
TargetStackID uint64 `json:"targetStackId"`
}
type RecordCloneStatus struct {
// Disk ID
DiskID int `json:"disk_id"`
// Clone Status
Status CloneStatus `json:"status"`
}
type CloneStatus struct {
// Type
Type int `json:"type"`
// Copy speed
Bandwidth int `json:"bandwidth"`
// Current progress
Cur int `json:"cur"`
// Total size
End int `json:"end"`
// Operation status
Ready bool `json:"ready"`
// Progress percent
ProgressPercent int `json:"progress_percent"`
}