 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- type Components8K6CbSchemasObjectmapping20221001PropertiesMappinglistItemsPropertiesObjectmappingsettingPropertiesEsmetamappingsetting
- type Dts
- type Enum0
- type Enum5
- type GetAsyncPreCheckResult
- type GetAsyncPreCheckResultBody
- type GetAsyncPreCheckResultQuery
- type GetAsyncPreCheckResultReq
- type GetAsyncPreCheckResultRes
- type GetAsyncPreCheckResultResResponseMetadata
- type GetAsyncPreCheckResultResResult
- type GetAsyncPreCheckResultResResultPreChecksItem
- type GetAsyncPreCheckResultResResultPreChecksItemLevel
- type GetAsyncPreCheckResultResResultStatus
- type ObjectMapping20221001
- type ObjectMapping20221001MappingListItem
- type ObjectMapping20221001MappingListItemObjectMappingSetting
- type ObjectMapping20221001MappingListItemObjectType
- type ObjectMapping20221001MappingListPropertiesItemsItem
- type ObjectMapping20221001ObjectMappingSetting
- type ObjectMapping20221001ObjectMappingSettingESMetaMappingSetting
- type ObjectMapping20221001ObjectMappingSettingObjectTransTypesItem
- type ObjectMapping20221001ObjectMappingSettingPolicyForKeyConflict
- type ObjectMapping20221001ObjectType
- type PreCheckAsync
- type PreCheckAsyncBody
- type PreCheckAsyncQuery
- type PreCheckAsyncReq
- type PreCheckAsyncRes
- type PreCheckAsyncResResponseMetadata
- type PreCheckAsyncResResult
Constants ¶
      View Source
      
  
const ( ServiceName = "dts" DefaultTimeout = 10 * time.Second )
Variables ¶
      View Source
      
  
var ( ServiceInfoMap = map[string]common.ServiceInfo{ "cn-beijing": { Timeout: DefaultTimeout, Scheme: "https", Host: "dts.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: common.Credentials{ Region: "cn-beijing", Service: ServiceName, }, }, "cn-guangzhou": { Timeout: DefaultTimeout, Scheme: "https", Host: "dts.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: common.Credentials{ Region: "cn-guangzhou", Service: ServiceName, }, }, "cn-shanghai": { Timeout: DefaultTimeout, Scheme: "https", Host: "dts.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: common.Credentials{ Region: "cn-shanghai", Service: ServiceName, }, }, } ApiListInfo = map[string]*common.ApiInfo{ "GetAsyncPreCheckResult": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"GetAsyncPreCheckResult"}, "Version": []string{"2018-01-01"}, }, }, "PreCheckAsync": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"PreCheckAsync"}, "Version": []string{"2018-01-01"}, }, }, } )
Functions ¶
This section is empty.
Types ¶
type Components8K6CbSchemasObjectmapping20221001PropertiesMappinglistItemsPropertiesObjectmappingsettingPropertiesEsmetamappingsetting ¶
type Dts ¶
func NewInstance ¶
func NewInstance() *Dts
func NewInstanceWithRegion ¶
func (*Dts) GetAsyncPreCheckResult ¶
func (c *Dts) GetAsyncPreCheckResult(ctx context.Context, arg *GetAsyncPreCheckResultBody) (*GetAsyncPreCheckResultRes, error)
func (*Dts) PreCheckAsync ¶
func (c *Dts) PreCheckAsync(ctx context.Context, arg *PreCheckAsyncBody) (*PreCheckAsyncRes, error)
func (*Dts) SetRegionAndHost ¶ added in v1.0.185
type GetAsyncPreCheckResult ¶
type GetAsyncPreCheckResult struct{}
    type GetAsyncPreCheckResultBody ¶
type GetAsyncPreCheckResultBody struct {
	// REQUIRED; 预检查任务ID
	ID string `json:"ID"`
}
    type GetAsyncPreCheckResultQuery ¶
type GetAsyncPreCheckResultQuery struct{}
    type GetAsyncPreCheckResultReq ¶
type GetAsyncPreCheckResultReq struct {
	*GetAsyncPreCheckResultQuery
	*GetAsyncPreCheckResultBody
}
    type GetAsyncPreCheckResultRes ¶
type GetAsyncPreCheckResultRes struct {
	ResponseMetadata *GetAsyncPreCheckResultResResponseMetadata `json:"ResponseMetadata,omitempty"`
	Result           *GetAsyncPreCheckResultResResult           `json:"Result,omitempty"`
}
    type GetAsyncPreCheckResultResResponseMetadata ¶
type GetAsyncPreCheckResultResResponseMetadata struct {
	// REQUIRED; 请求的接口名,属于请求的公共参数。
	Action string `json:"Action"`
	// REQUIRED; 请求的Region,例如:cn-north-1
	Region string `json:"Region"`
	// REQUIRED; RequestId为每次API请求的唯一标识。
	RequestID string `json:"RequestId"`
	// REQUIRED; 请求的服务,属于请求的公共参数。
	Service string `json:"Service"`
	// REQUIRED; 请求的版本号,属于请求的公共参数。
	Version string `json:"Version"`
}
    type GetAsyncPreCheckResultResResult ¶
type GetAsyncPreCheckResultResResult struct {
	// 是否通过
	Pass *bool `json:"Pass,omitempty"`
	// 预检查结果
	PreChecks []*GetAsyncPreCheckResultResResultPreChecksItem `json:"PreChecks,omitempty"`
	// 进度,如10
	Progress *int64                                 `json:"Progress,omitempty"`
	Status   *GetAsyncPreCheckResultResResultStatus `json:"Status,omitempty"`
}
    type GetAsyncPreCheckResultResResultPreChecksItem ¶
type GetAsyncPreCheckResultResResultPreChecksItem struct {
	// 描述
	Desc *string `json:"Desc,omitempty"`
	// 详情
	Details *string `json:"Details,omitempty"`
	// id
	Key   *string                                            `json:"Key,omitempty"`
	Level *GetAsyncPreCheckResultResResultPreChecksItemLevel `json:"Level,omitempty"`
	// 名称
	Name *string `json:"Name,omitempty"`
	// 是否通过
	Pass *bool `json:"Pass,omitempty"`
}
    type GetAsyncPreCheckResultResResultPreChecksItemLevel ¶
type GetAsyncPreCheckResultResResultPreChecksItemLevel string
type GetAsyncPreCheckResultResResultStatus ¶
type GetAsyncPreCheckResultResResultStatus string
type ObjectMapping20221001 ¶
type ObjectMapping20221001 struct {
	DestObjName          *string                                    `json:"DestObjName,omitempty"`
	MappingList          []*ObjectMapping20221001MappingListItem    `json:"MappingList,omitempty"`
	ObjectMappingSetting *ObjectMapping20221001ObjectMappingSetting `json:"ObjectMappingSetting,omitempty"`
	ObjectType           *ObjectMapping20221001ObjectType           `json:"ObjectType,omitempty"`
	SrcObjName           *string                                    `json:"SrcObjName,omitempty"`
}
    type ObjectMapping20221001MappingListItem ¶
type ObjectMapping20221001MappingListItem struct {
	DestObjName          *string                                                   `json:"DestObjName,omitempty"`
	MappingList          []*ObjectMapping20221001                                  `json:"MappingList,omitempty"`
	ObjectMappingSetting *ObjectMapping20221001MappingListItemObjectMappingSetting `json:"ObjectMappingSetting,omitempty"`
	ObjectType           *ObjectMapping20221001MappingListItemObjectType           `json:"ObjectType,omitempty"`
	SrcObjName           *string                                                   `json:"SrcObjName,omitempty"`
}
    type ObjectMapping20221001MappingListItemObjectMappingSetting ¶
type ObjectMapping20221001MappingListItemObjectMappingSetting struct {
	ESMetaMappingSetting *Components8K6CbSchemasObjectmapping20221001PropertiesMappinglistItemsPropertiesObjectmappingsettingPropertiesEsmetamappingsetting `json:"ESMetaMappingSetting,omitempty"`
	ObjectTransTypes     []*ObjectMapping20221001MappingListPropertiesItemsItem                                                                             `json:"ObjectTransTypes,omitempty"`
	PolicyForKeyConflict *Enum5                                                                                                                             `json:"PolicyForKeyConflict,omitempty"`
	// 向前兼容,默认false,表示所有操作类型
	SetObjectTransType *bool `json:"SetObjectTransType,omitempty"`
}
    type ObjectMapping20221001MappingListItemObjectType ¶
type ObjectMapping20221001MappingListItemObjectType string
type ObjectMapping20221001MappingListPropertiesItemsItem ¶
type ObjectMapping20221001MappingListPropertiesItemsItem string
type ObjectMapping20221001ObjectMappingSetting ¶
type ObjectMapping20221001ObjectMappingSetting struct {
	ESMetaMappingSetting *ObjectMapping20221001ObjectMappingSettingESMetaMappingSetting   `json:"ESMetaMappingSetting,omitempty"`
	ObjectTransTypes     []*ObjectMapping20221001ObjectMappingSettingObjectTransTypesItem `json:"ObjectTransTypes,omitempty"`
	PolicyForKeyConflict *ObjectMapping20221001ObjectMappingSettingPolicyForKeyConflict   `json:"PolicyForKeyConflict,omitempty"`
	// 向前兼容,默认false,表示所有操作类型
	SetObjectTransType *bool `json:"SetObjectTransType,omitempty"`
}
    type ObjectMapping20221001ObjectMappingSettingObjectTransTypesItem ¶
type ObjectMapping20221001ObjectMappingSettingObjectTransTypesItem string
type ObjectMapping20221001ObjectMappingSettingPolicyForKeyConflict ¶
type ObjectMapping20221001ObjectMappingSettingPolicyForKeyConflict string
type ObjectMapping20221001ObjectType ¶
type ObjectMapping20221001ObjectType string
type PreCheckAsync ¶
type PreCheckAsync struct{}
    type PreCheckAsyncBody ¶
type PreCheckAsyncBody struct {
	// REQUIRED; 迁移ID
	TaskID string `json:"TaskID"`
}
    type PreCheckAsyncQuery ¶
type PreCheckAsyncQuery struct{}
    type PreCheckAsyncReq ¶
type PreCheckAsyncReq struct {
	*PreCheckAsyncQuery
	*PreCheckAsyncBody
}
    type PreCheckAsyncRes ¶
type PreCheckAsyncRes struct {
	ResponseMetadata *PreCheckAsyncResResponseMetadata `json:"ResponseMetadata,omitempty"`
	Result           *PreCheckAsyncResResult           `json:"Result,omitempty"`
}
    type PreCheckAsyncResResponseMetadata ¶
type PreCheckAsyncResResponseMetadata struct {
	// REQUIRED; 请求的接口名,属于请求的公共参数。
	Action string `json:"Action"`
	// REQUIRED; 请求的Region,例如:cn-north-1
	Region string `json:"Region"`
	// REQUIRED; RequestId为每次API请求的唯一标识。
	RequestID string `json:"RequestId"`
	// REQUIRED; 请求的服务,属于请求的公共参数。
	Service string `json:"Service"`
	// REQUIRED; 请求的版本号,属于请求的公共参数。
	Version string `json:"Version"`
}
    type PreCheckAsyncResResult ¶
type PreCheckAsyncResResult struct {
	// 预检查结果id
	ID *string `json:"ID,omitempty"`
}
     Click to show internal directories. 
   Click to hide internal directories.