Documentation ¶
Index ¶
Constants ¶
View Source
const ( GenericJdbcConnector = "generic-jdbc-connector" ObsConnector = "obs-connector" HdfsConnector = "hdfs-connector" HbaseConnector = "hbase-connector" HiveConnector = "hive-connector" SftpConnector = "sftp-connector" FtpConnector = "ftp-connector" MongodbConnector = "mongodb-connector" RedisConnector = "redis-connector" KafkaConnector = "kafka-connector" DisConnector = "dis-connector" ElasticsearchConnector = "elasticsearch-connector" DliConnector = "dli-connector" OpentsdbConnector = "opentsdb-connector" DmsKafkaConnector = "dms-kafka-connector" // thirdparty-obs-connector is deprecated now ThirdpartyObsConnector = "thirdparty-obs-connector" )
Variables ¶
View Source
var RequestOpts = golangsdk.RequestOpts{ MoreHeaders: map[string]string{"Content-Type": "application/json", "X-Language": "en-us"}, }
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link struct { Name string `json:"name" required:"true"` // Connector name. The mappings between the connectors and links are as follows: // generic-jdbc-connector: link to a relational database; // obs-connector: link to OBS; // hdfs-connector: link to HDFS; // hbase-connector: link to HBase and link to CloudTable; // hive-connector: link to Hive; // ftp-connector/sftp-connector: link to an FTP or SFTP server; // mongodb-connector: link to MongoDB; // redis-connector: link to Redis; // kafka-connector: link to Kafka; // dis-connector: link to DIS; // elasticsearch-connector: link to Elasticsearch/Cloud Search Service; // dli-connector: link to DLI; // opentsdb-connector: link to CloudTable OpenTSDB; // dms-kafka-connector: link to DMS Kafka ConnectorName string `json:"connector-name" required:"true"` LinkConfigValues LinkConfigs `json:"link-config-values" required:"true"` Enabled *bool `json:"enabled,omitempty"` CreationUser string `json:"creation-user,omitempty"` CreationDate *int `json:"creation-date,omitempty"` UpdateUser string `json:"update-user,omitempty"` UpdateDate *int `json:"update-date,omitempty"` }
type LinkConfigs ¶
type LinkConfigs struct {
Configs []Configs `json:"configs,omitempty"`
}
type LinkCreateOpts ¶
type LinkCreateOpts struct {
Links []Link `json:"links" required:"true"`
}
type LinkCreateResponse ¶
type LinkCreateResponse struct { Name string `json:"name"` ValidationResult []validationResult `json:"validation-result"` }
func Create ¶
func Create(c *golangsdk.ServiceClient, clusterId string, opts LinkCreateOpts) (*LinkCreateResponse, error)
type LinkDeleteResponse ¶
type LinkDeleteResponse struct { // Error code ErrCode string `json:"errCode"` // Error message ErrMessage string `json:"externalMessage"` }
func Delete ¶
func Delete(c *golangsdk.ServiceClient, clusterId string, linkName string) (*LinkDeleteResponse, error)
type LinkDetail ¶
type LinkDetail struct { // Link list. For details, see the description of the links parameter. Links []Link `json:"links"` // Source and destination data sources not supported by table/file migration FromToUnMapping string `json:"fromTo-unMapping"` // Source and destination data sources supported by entire DB migration BatchFromToMapping string `json:"batchFromTo-mapping"` }
func Get ¶
func Get(c *golangsdk.ServiceClient, clusterId string, linkName string) (*LinkDetail, error)
type LinkUpdateResponse ¶
type LinkUpdateResponse struct {
ValidationResult []validationResult `json:"validation-result"`
}
func Update ¶
func Update(c *golangsdk.ServiceClient, clusterId string, linkName string, opts LinkCreateOpts) (*LinkUpdateResponse, error)
type LinkValidationDetail ¶
Click to show internal directories.
Click to hide internal directories.