(apiSrcTask *models.SrcTaskConfig, apiDestTask *models.DestTaskConfig)
| 85 | } |
| 86 | |
| 87 | func decryptMySQLPwd(apiSrcTask *models.SrcTaskConfig, apiDestTask *models.DestTaskConfig) (err error) { |
| 88 | // decrypt mysql password |
| 89 | apiSrcTask.ConnectionConfig.Password, err = handler.DecryptPassword(apiSrcTask.ConnectionConfig.Password, g.RsaPrivateKey) |
| 90 | if nil != err { |
| 91 | return fmt.Errorf("decrypt src mysql password failed: %v", err) |
| 92 | } |
| 93 | apiDestTask.ConnectionConfig.Password, err = handler.DecryptPassword(apiDestTask.ConnectionConfig.Password, g.RsaPrivateKey) |
| 94 | if nil != err { |
| 95 | return fmt.Errorf("decrypt src mysql password failed: %v", err) |
| 96 | } |
| 97 | return |
| 98 | } |
| 99 | |
| 100 | func validateTaskConfig(apiSrcTask *models.SrcTaskConfig, apiDestTask *models.DestTaskConfig) ([]*models.MysqlTaskValidationReport, error) { |
| 101 | taskValidationRes := []*models.MysqlTaskValidationReport{} |
no test coverage detected