Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SshSession ¶
type SshSession interface {
Stat(path string) (FileStat, error)
SendDir(progress io.Writer, src, dst string) error
SendFile(progress io.Writer, src, dst string) error
Exec(cmdOutput io.Writer, cmd string, param ...string) error
ReceiveRemoteFile(progress io.Writer, remoteSrc, dst string) error
ReceiveRemoteDir(progress io.Writer, remoteDir, dst string) error
RemoveFile(path string) error
Mkdir(path string) error
RemoveDirectory(path string) error
RemoveAll(srcdir string) error
SetSftpConcurrency(concurrency bool)
Close()
}
func ConnectWithPassword ¶
func ConnectWithPassword(opt Options) (SshSession, error)
type StatusError ¶
type StatusError struct {
Code uint32
// contains filtered or unexported fields
}
func (*StatusError) Error ¶
func (s *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.