Documentation
¶
Index ¶
- Constants
- func DoNothing(hostname string, remote net.Addr, key ssh.PublicKey) (err error)
- type SftpSettings
- func (sftpSettings *SftpSettings) Connect() (err error)
- func (util *SftpSettings) GetCmdLine() (err error)
- func (sftpSettings *SftpSettings) GetFile() (err error)
- func (sftpSettings *SftpSettings) LsDir() (err error)
- func (sftpSettings *SftpSettings) PutFile() (err error)
- func (sftpSettings *SftpSettings) RmFile() (err error)
Constants ¶
View Source
const SFTP_BUFSIZE = 131072
Byte buffer for file I/O (128K)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SftpSettings ¶
type SftpSettings struct { NoChmod bool Rdir string // Remote directory Ldir string // Local directory Filename string // File to transfer Type string // GET or PUT User string // Username Pass string // Password KeyFile string // RSA Key file Host string // Hostname or IP Address Port string // TCP port Client *sftp.Client SshClient *ssh.Client }
func (*SftpSettings) Connect ¶
func (sftpSettings *SftpSettings) Connect() (err error)
func (*SftpSettings) GetCmdLine ¶
func (util *SftpSettings) GetCmdLine() (err error)
func (*SftpSettings) GetFile ¶
func (sftpSettings *SftpSettings) GetFile() (err error)
func (*SftpSettings) LsDir ¶
func (sftpSettings *SftpSettings) LsDir() (err error)
func (*SftpSettings) PutFile ¶
func (sftpSettings *SftpSettings) PutFile() (err error)
func (*SftpSettings) RmFile ¶
func (sftpSettings *SftpSettings) RmFile() (err error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.