-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: onboard new generic destination sftp (#4601)
* feat: add stubs for sftp destination manager * refactor: async destination logic * refactor: sendJobsToStorage for sftp destinations * feat: onboard new destination sftp * feat: add action support and update sftp max size logic * feat: add file format * refactor: using struct for unmarshalling * refactor: unexport structs and use json decoder * test: add testcases * feat: implement Transform for yandeskmetrica * fix: add yandex metrica in async destinations list * refactor: address review comments * chore: bump go-kit version * refactor: address review comments * refactor: address review comments * refactor: address review comments * refactor: address review comments * refactor: address review comments * chore: remove extra line * chore: fix manager instance name * fix: file upload error --------- Co-authored-by: Dilip Kola <kdilipkola@gmail.com> Co-authored-by: Dilip Kola <33080863+koladilip@users.noreply.github.com> Co-authored-by: ItsSudip <sudip.paul1997@gmail.com>
- Loading branch information
1 parent
566f430
commit c6a28bb
Showing
27 changed files
with
1,116 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
router/batchrouter/asyncdestinationmanager/common/utils.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package common | ||
|
||
import "slices" | ||
|
||
var ( | ||
asyncDestinations = []string{"MARKETO_BULK_UPLOAD", "BINGADS_AUDIENCE", "ELOQUA", "YANDEX_METRICA_OFFLINE_EVENTS"} | ||
sftpDestinations = []string{"SFTP"} | ||
) | ||
|
||
func IsSFTPDestination(destination string) bool { | ||
return slices.Contains(sftpDestinations, destination) | ||
} | ||
|
||
func IsAsyncRegularDestination(destination string) bool { | ||
return slices.Contains(asyncDestinations, destination) | ||
} | ||
|
||
func IsAsyncDestination(destination string) bool { | ||
return slices.Contains(append(asyncDestinations, sftpDestinations...), destination) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.