Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SFTPConnector ¶
type SFTPConnector struct {
// contains filtered or unexported fields
}
func NewSFTPConnector ¶
func NewSFTPConnector(cfg SFTPConfig) (*SFTPConnector, error)
func (*SFTPConnector) Close ¶
func (conn *SFTPConnector) Close()
func (*SFTPConnector) DownloadFileFromDir ¶
func (conn *SFTPConnector) DownloadFileFromDir(remoteDir, localDir string, regX *regexp.Regexp, lastUpdateTime time.Time) ([]string, error)
download the files from remote directory into local directory if regX is nil, downlaod all files... else download only regx matching files return the downloaded file list
func (*SFTPConnector) GetWorkingDir ¶
func (conn *SFTPConnector) GetWorkingDir() (string, error)
func (*SFTPConnector) Reconnect ¶
func (conn *SFTPConnector) Reconnect() error
Click to show internal directories.
Click to hide internal directories.