v9.0.0
This commit is contained in:
31
pkg/cloudbroker/backup/models.go
Normal file
31
pkg/cloudbroker/backup/models.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package backup
|
||||
|
||||
// Main info about backup
|
||||
type InfoBackup struct {
|
||||
// Compute ID
|
||||
ComputeID uint64 `json:"computeId"`
|
||||
|
||||
// Disk ID
|
||||
DiskID uint64 `json:"diskId"`
|
||||
|
||||
// Backup path
|
||||
BackupPath string `json:"backupPath"`
|
||||
|
||||
// Possible error
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
// CreateDisksBackup response
|
||||
type ListInfoBackup []InfoBackup
|
||||
|
||||
// RestoreDiskFromFile response
|
||||
type InfoRestoredDisk struct {
|
||||
// Compute ID
|
||||
ComputeID uint64 `json:"computeId"`
|
||||
|
||||
// Disk ID
|
||||
DiskID uint64 `json:"diskId"`
|
||||
}
|
||||
|
||||
// RestoreDisksFromFile response
|
||||
type ListInfoRestoredDisk []InfoRestoredDisk
|
||||
Reference in New Issue
Block a user