v16.10.0
v16.10.0
This commit is contained in:
1 parent
bc8c2b40e9
commit
00994516ba
52 files changed
+2287
-98
No files matched your search
@@ -205,21 +205,51 @@ type InfoDisk struct {
|
||||
}
|
||||
|
||||
type ItemReplication struct {
|
||||
// Bandwidth
|
||||
Bandwidth uint64 `json:"bandwidth"`
|
||||
|
||||
// CopyRate
|
||||
CopyRate uint64 `json:"copy_rate"`
|
||||
|
||||
// DiskID
|
||||
DiskID uint64 `json:"diskId"`
|
||||
|
||||
// LastSync
|
||||
LastSync uint64 `json:"last_sync"`
|
||||
|
||||
// PairID
|
||||
PairID string `json:"pair_id"`
|
||||
|
||||
// PoolID
|
||||
PoolID string `json:"poolId"`
|
||||
|
||||
// ProfileID
|
||||
ProfileID uint64 `json:"profile_id"`
|
||||
|
||||
// Role
|
||||
Role string `json:"role"`
|
||||
|
||||
// ScheduleID
|
||||
ScheduleID uint64 `json:"schedule_id"`
|
||||
|
||||
// ScheduleName
|
||||
ScheduleName string `json:"schedule_name"`
|
||||
|
||||
// SelfVolumeID
|
||||
SelfVolumeID string `json:"selfVolumeId"`
|
||||
|
||||
// Status
|
||||
Status string `json:"status"`
|
||||
|
||||
// StorageID
|
||||
StorageID string `json:"storageId"`
|
||||
|
||||
// Target
|
||||
Target string `json:"target"`
|
||||
|
||||
// Type
|
||||
Type string `json:"type"`
|
||||
|
||||
// VolumeID
|
||||
VolumeID string `json:"volumeId"`
|
||||
}
|
||||
@@ -353,3 +383,432 @@ type MigrateStatus struct {
|
||||
// Operation status
|
||||
Ready bool `json:"ready"`
|
||||
}
|
||||
|
||||
// MigrateV2SourceDisk describes a source disk of a migration
|
||||
type MigrateV2SourceDisk struct {
|
||||
// Disk ID
|
||||
DiskID uint64 `json:"disk_id"`
|
||||
|
||||
// SEP ID
|
||||
SEPID uint64 `json:"sep_id"`
|
||||
|
||||
// SEP type
|
||||
SEPType string `json:"sep_type"`
|
||||
|
||||
// Pool name
|
||||
PoolName string `json:"pool_name"`
|
||||
|
||||
// Storage policy ID
|
||||
StoragePolicyID uint64 `json:"storage_policy_id"`
|
||||
}
|
||||
|
||||
// MigrateV2RequestedTarget describes a requested target of a migration
|
||||
type MigrateV2RequestedTarget struct {
|
||||
// Disk IDs
|
||||
DiskIDs []uint64 `json:"disk_ids"`
|
||||
|
||||
// SEP ID
|
||||
SEPID uint64 `json:"sep_id"`
|
||||
|
||||
// SEP type
|
||||
SEPType string `json:"sep_type"`
|
||||
|
||||
// Pool name
|
||||
PoolName string `json:"pool_name"`
|
||||
|
||||
// Storage policy ID
|
||||
StoragePolicyID uint64 `json:"storage_policy_id"`
|
||||
}
|
||||
|
||||
// MigrateV2RequestedStorage describes a requested storage of a migration
|
||||
type MigrateV2RequestedStorage struct {
|
||||
// Targets
|
||||
Targets []MigrateV2RequestedTarget `json:"targets"`
|
||||
|
||||
// Auto cleanup
|
||||
AutoCleanup bool `json:"auto_cleanup"`
|
||||
}
|
||||
|
||||
// MigrateV2Origin describes an origin of a migration
|
||||
type MigrateV2Origin struct {
|
||||
// Type
|
||||
Type string `json:"type"`
|
||||
|
||||
// Correlation ID
|
||||
CorrelationID string `json:"correlation_id"`
|
||||
}
|
||||
|
||||
// MigrateV2Observation describes an observation of a migration progress
|
||||
type MigrateV2Observation struct {
|
||||
// Updated at
|
||||
UpdatedAt float64 `json:"updated_at"`
|
||||
|
||||
// Agent job ID
|
||||
AgentJobID string `json:"agent_job_id"`
|
||||
|
||||
// Attempt
|
||||
Attempt uint64 `json:"attempt"`
|
||||
|
||||
// Operation
|
||||
Operation string `json:"operation"`
|
||||
}
|
||||
|
||||
// MigrateV2Memory describes a memory progress of a migration
|
||||
type MigrateV2Memory struct {
|
||||
// Sampled at
|
||||
SampledAt float64 `json:"sampled_at"`
|
||||
|
||||
// Percent
|
||||
Percent float64 `json:"percent"`
|
||||
|
||||
// Bytes per second
|
||||
BytesPerSecond float64 `json:"bytes_per_second"`
|
||||
|
||||
// Processed bytes
|
||||
ProcessedBytes uint64 `json:"processed_bytes"`
|
||||
|
||||
// Remaining bytes
|
||||
RemainingBytes uint64 `json:"remaining_bytes"`
|
||||
}
|
||||
|
||||
// MigrateV2ProgressItem describes a progress of a disk copy
|
||||
type MigrateV2ProgressItem struct {
|
||||
// Kind
|
||||
Kind string `json:"kind"`
|
||||
|
||||
// Source disk ID
|
||||
SourceDiskID uint64 `json:"source_disk_id"`
|
||||
|
||||
// Target disk ID
|
||||
TargetDiskID uint64 `json:"target_disk_id"`
|
||||
|
||||
// Target dev
|
||||
TargetDev string `json:"target_dev"`
|
||||
|
||||
// State
|
||||
State string `json:"state"`
|
||||
|
||||
// Sampled at
|
||||
SampledAt float64 `json:"sampled_at"`
|
||||
|
||||
// Percent
|
||||
Percent float64 `json:"percent"`
|
||||
|
||||
// Bytes per second
|
||||
BytesPerSecond float64 `json:"bytes_per_second"`
|
||||
|
||||
// Processed bytes
|
||||
ProcessedBytes uint64 `json:"processed_bytes"`
|
||||
|
||||
// Remaining bytes
|
||||
RemainingBytes uint64 `json:"remaining_bytes"`
|
||||
}
|
||||
|
||||
// MigrateV2ProgressDisks describes a disks progress of a migration
|
||||
type MigrateV2ProgressDisks struct {
|
||||
// Sampled at
|
||||
SampledAt float64 `json:"sampled_at"`
|
||||
|
||||
// Percent
|
||||
Percent float64 `json:"percent"`
|
||||
|
||||
// Bytes per second
|
||||
BytesPerSecond float64 `json:"bytes_per_second"`
|
||||
|
||||
// Processed bytes
|
||||
ProcessedBytes uint64 `json:"processed_bytes"`
|
||||
|
||||
// Remaining bytes
|
||||
RemainingBytes uint64 `json:"remaining_bytes"`
|
||||
|
||||
// Percent is estimated
|
||||
PercentIsEstimated bool `json:"percent_is_estimated"`
|
||||
|
||||
// Disks total
|
||||
DisksTotal uint64 `json:"disks_total"`
|
||||
|
||||
// Disks completed
|
||||
DisksCompleted uint64 `json:"disks_completed"`
|
||||
|
||||
// Items
|
||||
Items []MigrateV2ProgressItem `json:"items"`
|
||||
}
|
||||
|
||||
// MigrateV2Progress describes a progress of a migration
|
||||
type MigrateV2Progress struct {
|
||||
// Observation
|
||||
Observation MigrateV2Observation `json:"observation"`
|
||||
|
||||
// Memory
|
||||
Memory MigrateV2Memory `json:"memory"`
|
||||
|
||||
// Disks
|
||||
Disks MigrateV2ProgressDisks `json:"disks"`
|
||||
}
|
||||
|
||||
// MigrateV2Disk describes a disk of a migration
|
||||
type MigrateV2Disk struct {
|
||||
// Source disk ID
|
||||
SourceDiskID uint64 `json:"source_disk_id"`
|
||||
|
||||
// Target disk ID
|
||||
TargetDiskID uint64 `json:"target_disk_id"`
|
||||
|
||||
// SEP ID
|
||||
SEPID uint64 `json:"sep_id"`
|
||||
|
||||
// Pool name
|
||||
PoolName string `json:"pool_name"`
|
||||
|
||||
// Storage policy ID
|
||||
StoragePolicyID uint64 `json:"storage_policy_id"`
|
||||
|
||||
// State
|
||||
State string `json:"state"`
|
||||
|
||||
// Copy node ID
|
||||
CopyNodeID uint64 `json:"copy_node_id"`
|
||||
|
||||
// Copy state
|
||||
CopyState string `json:"copy_state"`
|
||||
|
||||
// Writer stopped
|
||||
WriterStopped bool `json:"writer_stopped"`
|
||||
}
|
||||
|
||||
// MigrateV2CleanupInfo describes a cleanup of a migration
|
||||
type MigrateV2CleanupInfo struct {
|
||||
// Job ID
|
||||
JobID string `json:"job_id"`
|
||||
|
||||
// Status
|
||||
Status string `json:"status"`
|
||||
|
||||
// Error
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
// MigrateV2Resolution describes a resolution of a migration
|
||||
type MigrateV2Resolution struct {
|
||||
// Resolved at
|
||||
ResolvedAt string `json:"resolved_at"`
|
||||
|
||||
// Resolved by
|
||||
ResolvedBy string `json:"resolved_by"`
|
||||
|
||||
// Request ID
|
||||
RequestID string `json:"request_id"`
|
||||
|
||||
// Take over cleanup
|
||||
TakeOverCleanup bool `json:"take_over_cleanup"`
|
||||
|
||||
// Previous status
|
||||
PreviousStatus string `json:"previous_status"`
|
||||
|
||||
// Previous cleanup required
|
||||
PreviousCleanupRequired bool `json:"previous_cleanup_required"`
|
||||
|
||||
// Previous error
|
||||
PreviousError string `json:"previous_error"`
|
||||
}
|
||||
|
||||
// MigrateV2Item describes a disks migration in a list
|
||||
type MigrateV2Item struct {
|
||||
// Workflow job ID
|
||||
WorkflowJobID string `json:"workflow_job_id"`
|
||||
|
||||
// User
|
||||
User string `json:"user"`
|
||||
|
||||
// Execution kind
|
||||
ExecutionKind string `json:"execution_kind"`
|
||||
|
||||
// Bandwidth bytes per second
|
||||
BandwidthBytesPerSecond uint64 `json:"bandwidth_bytes_per_second"`
|
||||
|
||||
// Copy parallelism
|
||||
CopyParallelism uint64 `json:"copy_parallelism"`
|
||||
|
||||
// Source disks
|
||||
SourceDisks []MigrateV2SourceDisk `json:"source_disks"`
|
||||
|
||||
// Requested storage
|
||||
RequestedStorage MigrateV2RequestedStorage `json:"requested_storage"`
|
||||
|
||||
// Disk plan ready
|
||||
DiskPlanReady bool `json:"disk_plan_ready"`
|
||||
|
||||
// Disk IDs
|
||||
DiskIDs []uint64 `json:"disk_ids"`
|
||||
|
||||
// Disk IDs not copied
|
||||
DiskIDsNotCopied []uint64 `json:"disk_ids_not_copied"`
|
||||
|
||||
// Account ID
|
||||
AccountID uint64 `json:"account_id"`
|
||||
|
||||
// Origin
|
||||
Origin MigrateV2Origin `json:"origin"`
|
||||
|
||||
// Status
|
||||
Status string `json:"status"`
|
||||
|
||||
// Progress
|
||||
Progress MigrateV2Progress `json:"progress"`
|
||||
|
||||
// Migration result confirmed
|
||||
MigrationResultConfirmed bool `json:"migration_result_confirmed"`
|
||||
|
||||
// Offline commit started
|
||||
OfflineCommitStarted bool `json:"offline_commit_started"`
|
||||
|
||||
// Disks
|
||||
Disks []MigrateV2Disk `json:"disks"`
|
||||
|
||||
// Error
|
||||
Error string `json:"error"`
|
||||
|
||||
// Cleanup required
|
||||
CleanupRequired bool `json:"cleanup_required"`
|
||||
|
||||
// Cleanup
|
||||
Cleanup MigrateV2CleanupInfo `json:"cleanup"`
|
||||
|
||||
// Resolution
|
||||
Resolution MigrateV2Resolution `json:"resolution"`
|
||||
|
||||
// Created at
|
||||
CreatedAt string `json:"created_at"`
|
||||
|
||||
// Updated at
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
// ListMigrateV2 is a list of disks migrations
|
||||
type ListMigrateV2 struct {
|
||||
// Entry count
|
||||
EntryCount uint64 `json:"entry_count"`
|
||||
|
||||
// Data
|
||||
Data []MigrateV2Item `json:"data"`
|
||||
}
|
||||
|
||||
// MigrateV2Record describes detailed information about a disks migration
|
||||
type MigrateV2Record struct {
|
||||
// Workflow job ID
|
||||
WorkflowJobID string `json:"workflow_job_id"`
|
||||
|
||||
// User
|
||||
User string `json:"user"`
|
||||
|
||||
// Execution kind
|
||||
ExecutionKind string `json:"execution_kind"`
|
||||
|
||||
// Bandwidth bytes per second
|
||||
BandwidthBytesPerSecond uint64 `json:"bandwidth_bytes_per_second"`
|
||||
|
||||
// Copy parallelism
|
||||
CopyParallelism uint64 `json:"copy_parallelism"`
|
||||
|
||||
// Source disks
|
||||
SourceDisks []MigrateV2SourceDisk `json:"source_disks"`
|
||||
|
||||
// Requested storage
|
||||
RequestedStorage MigrateV2RequestedStorage `json:"requested_storage"`
|
||||
|
||||
// Disk plan ready
|
||||
DiskPlanReady bool `json:"disk_plan_ready"`
|
||||
|
||||
// Disk IDs
|
||||
DiskIDs []uint64 `json:"disk_ids"`
|
||||
|
||||
// Disk IDs not copied
|
||||
DiskIDsNotCopied []uint64 `json:"disk_ids_not_copied"`
|
||||
|
||||
// Account ID
|
||||
AccountID uint64 `json:"account_id"`
|
||||
|
||||
// Origin
|
||||
Origin MigrateV2Origin `json:"origin"`
|
||||
|
||||
// Status
|
||||
Status string `json:"status"`
|
||||
|
||||
// Progress
|
||||
Progress MigrateV2Progress `json:"progress"`
|
||||
|
||||
// Migration result confirmed
|
||||
MigrationResultConfirmed bool `json:"migration_result_confirmed"`
|
||||
|
||||
// Offline commit started
|
||||
OfflineCommitStarted bool `json:"offline_commit_started"`
|
||||
|
||||
// Disks
|
||||
Disks []MigrateV2Disk `json:"disks"`
|
||||
|
||||
// Error
|
||||
Error string `json:"error"`
|
||||
|
||||
// Cleanup required
|
||||
CleanupRequired bool `json:"cleanup_required"`
|
||||
|
||||
// Cleanup
|
||||
Cleanup MigrateV2CleanupInfo `json:"cleanup"`
|
||||
|
||||
// Resolution
|
||||
Resolution MigrateV2Resolution `json:"resolution"`
|
||||
|
||||
// Created at
|
||||
CreatedAt string `json:"created_at"`
|
||||
|
||||
// Updated at
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
|
||||
// Logs
|
||||
Logs []string `json:"logs"`
|
||||
}
|
||||
|
||||
// MigrateV2AbortResult describes a result of a migration abort
|
||||
type MigrateV2AbortResult struct {
|
||||
// Workflow job ID
|
||||
WorkflowJobID string `json:"workflow_job_id"`
|
||||
|
||||
// Disk IDs
|
||||
DiskIDs []uint64 `json:"disk_ids"`
|
||||
|
||||
// Status
|
||||
Status string `json:"status"`
|
||||
|
||||
// Job ID
|
||||
JobID string `json:"job_id"`
|
||||
|
||||
// Message
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
// MigrateV2AbortRecord describes results of migrations abort
|
||||
type MigrateV2AbortRecord struct {
|
||||
// Results
|
||||
Results []MigrateV2AbortResult `json:"results"`
|
||||
}
|
||||
|
||||
// MigrateV2ResolveRecord describes a result of a migration resolve
|
||||
type MigrateV2ResolveRecord struct {
|
||||
// Workflow job ID
|
||||
WorkflowJobID string `json:"workflow_job_id"`
|
||||
|
||||
// Disk IDs
|
||||
DiskIDs []uint64 `json:"disk_ids"`
|
||||
|
||||
// Status
|
||||
Status string `json:"status"`
|
||||
|
||||
// Cleanup required
|
||||
CleanupRequired bool `json:"cleanup_required"`
|
||||
|
||||
// Resolution
|
||||
Resolution MigrateV2Resolution `json:"resolution"`
|
||||
|
||||
// Message
|
||||
Message string `json:"message"`
|
||||
}
|
||||
Reference in new issue
Block a user