Versions in this module Expand all Collapse all v0 v0.0.3 Nov 14, 2021 Changes in this version + const DefaultPort + const DefaultTimeout + func CheckFileRead(client *sftp.Client, path string) error + func CheckFileWrite(client *sftp.Client, path string, appendToFile bool, overwrite bool) error + func Stat(client *sftp.Client, path string) (bool, stat.Info, error) + type Reader struct + func Fetch(uri string, options ...ssh2.ClientOption) (*Reader, error) + func FetchWithKey(uri string, key []byte, options ...ssh2.ClientOption) (*Reader, error) + func NewReader(file *sftp.File, sftpClient *sftp.Client, sshClient *ssh.Client) *Reader + func (r *Reader) Close() error + func (r *Reader) Read(p []byte) (int, error) + type Writer struct + func NewWriter(file *sftp.File, sftpClient *sftp.Client, sshClient *ssh.Client, ...) *Writer + func WriteFile(uri string, fileMode os.FileMode, options ...ssh2.ClientOption) (*Writer, error) + func (w *Writer) Close() error + func (w *Writer) Write(b []byte) (int, error)