Documentation ¶
Index ¶
- type ConnConfig
- type SFTP
- func (f *SFTP) Connect() error
- func (f *SFTP) Disconnect() error
- func (f *SFTP) DownloadFile(remotePath string, localPath string) error
- func (f *SFTP) LimitByDate(remoteFolder string, beforeDurationPattern string) ([]string, error)
- func (f *SFTP) LimitByFileCount(remoteFolder string, limit int) ([]string, error)
- func (f *SFTP) LimitByLength(remoteFolder string, limitBytes int64) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnConfig ¶
type SFTP ¶
type SFTP struct { Connected bool SSHClient *ssh2.Client Client *sftp.Client Auth ssh2.ClientConfig Config ConnConfig }
func New ¶
func New(c ConnConfig) *SFTP
func (*SFTP) Disconnect ¶
func (*SFTP) LimitByDate ¶
func (*SFTP) LimitByFileCount ¶
Click to show internal directories.
Click to hide internal directories.