Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestOpts golangsdk.RequestOpts = golangsdk.RequestOpts{ MoreHeaders: map[string]string{"Content-Type": "application/json", "X-Language": "en-us"}, }
Functions ¶
This section is empty.
Types ¶
type CreateOpts ¶
type CreateOpts struct {
SrcNode SrcNodeOpts `json:"src_node" required:"true"`
DstNode DstNodeOpts `json:"dst_node" required:"true"`
EnableKMS *bool `json:"enableKMS" required:"true"`
ThreadNum int `json:"thread_num" required:"true"`
Description string `json:"description,omitempty"`
SmnInfo *SmnInfoOpts `json:"smnInfo,omitempty"`
}
func (CreateOpts) ToTaskCreateMap ¶
func (opts CreateOpts) ToTaskCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreateResult ¶
func Create ¶
func Create(c *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*Task, error)
func (CreateResult) ExtractInto ¶
func (r CreateResult) ExtractInto(v interface{}) error
type DeleteResult ¶
func Delete ¶
func Delete(c *golangsdk.ServiceClient, id string) (r DeleteResult)
type DstNodeOpts ¶
type GetResult ¶
func (GetResult) Extract ¶
func (r GetResult) Extract() (*TaskResult, error)
func (GetResult) ExtractInto ¶
type SmnInfoOpts ¶
type SrcNodeOpts ¶
type TaskResult ¶
type TaskResult struct {
ID int64 `json:"id"`
Name string `json:"name"`
SrcNode SrcNode `json:"src_node"`
DstNode DstNode `json:"dst_node"`
ThreadNum int `json:"thread_num"`
Status int `json:"status"`
Progress float64 `json:"progress"`
MigrateSpeed int64 `json:"migrate_speed"`
EnableKMS bool `json:"enableKMS"`
Description string `json:"description"`
TotalSize int64 `json:"total_size"`
CompleteSize int64 `json:"complete_size"`
StartTime int64 `json:"start_time"`
LeftTime int64 `json:"left_time"`
TotalTime int64 `json:"total_time"`
SuccessNum int64 `json:"success_num"`
FailNum int64 `json:"fail_num"`
TotalNum int64 `json:"total_num"`
SmnInfo SmnInfo `json:"smnInfo"`
}
Click to show internal directories.
Click to hide internal directories.