Documentation ¶
Index ¶
- type Client
- func (s *Client) Close(session *SftpSession) error
- func (s *Client) Download(session *SftpSession, remotePath, localFilePath string) error
- func (s *Client) NewSession() (*SftpSession, error)
- func (s *Client) Remove(session *SftpSession, remotePath string) error
- func (s *Client) Upload(session *SftpSession, localFilePath, remotePath string) error
- type SftpSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Close ¶
func (s *Client) Close(session *SftpSession) error
func (*Client) Download ¶
func (s *Client) Download(session *SftpSession, remotePath, localFilePath string) error
Download 下载远程文件到本地
func (*Client) NewSession ¶
func (s *Client) NewSession() (*SftpSession, error)
NewSession 创建一个新的sftp会话
Click to show internal directories.
Click to hide internal directories.