Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SftpClient ¶
type SftpClient interface { OpenFile(remoteFile string) (*sftp.File, error) PutFile(localFile, remoteFile string) (err error) PutString(text, remoteFile string) (err error) GetRecords(remoteFile string, onReader func(file *sftp.File) ([][]string, error)) ([][]string, error) Files(remoteDir string) []os.FileInfo WalkFiles(remoteDir string) ([]string, error) MoveFile(sourcePath string, destPath string) error RemoveFile(dirPath string) error Close() error ConnectionLostHandler(err error) EnsureDirExists(filePath string) error }
func NewClient ¶
func NewClient(conn SftpConn) (SftpClient, error)
NewClient Create a new SFTP connection by given parameters
Click to show internal directories.
Click to hide internal directories.