Documentation ¶
Index ¶
- func FTPDownload(logger lager.Logger, config gonfig.Gonfig, dbInstance db.Storage, jobID string) error
- func HTTPDownload(logger lager.Logger, config gonfig.Gonfig, dbInstance db.Storage, jobID string) error
- func S3Download(logger lager.Logger, config gonfig.Gonfig, dbInstance db.Storage, jobID string) error
- type DownloadFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FTPDownload ¶
func FTPDownload(logger lager.Logger, config gonfig.Gonfig, dbInstance db.Storage, jobID string) error
FTPDownload downloads the file from FTP. Job Source should be in format: ftp://login:password@host/path
Types ¶
type DownloadFunc ¶
type DownloadFunc func(logger lager.Logger, config gonfig.Gonfig, dbInstance db.Storage, jobID string) error
DownloadFunc is a function type for the multiple possible ways to download the source file
func GetDownloadFunc ¶
func GetDownloadFunc(jobSource string) DownloadFunc
GetDownloadFunc returns the download function based on the job source.
Click to show internal directories.
Click to hide internal directories.