Documentation
¶
Index ¶
- func Download(client *Client, remotePath string, localPath string, progress ProgressCallback) error
- func DownloadDir(client *Client, remoteDir string, localDir string, progress ProgressCallback) error
- func RemoveRemoteAll(fs RemoteRemoveFS, remotePath string) error
- func Upload(client *Client, localPath string, remotePath string, progress ProgressCallback) error
- func UploadDir(client *Client, localDir string, remoteDir string, progress ProgressCallback) error
- type Client
- func (c *Client) Chmod(path string, mode os.FileMode) error
- func (c *Client) Close() error
- func (c *Client) List(path string) ([]FileInfo, error)
- func (c *Client) Mkdir(path string) error
- func (c *Client) Remove(path string) error
- func (c *Client) RemoveDirectory(path string) error
- func (c *Client) Rename(oldPath, newPath string) error
- func (c *Client) SFTPClient() *sftp.Client
- func (c *Client) Stat(path string) (*FileInfo, error)
- type FileInfo
- type ProgressCallback
- type RemoteRemoveFS
- type TransferProgress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(client *Client, remotePath string, localPath string, progress ProgressCallback) error
func DownloadDir ¶
func DownloadDir(client *Client, remoteDir string, localDir string, progress ProgressCallback) error
func RemoveRemoteAll ¶ added in v1.3.0
func RemoveRemoteAll(fs RemoteRemoveFS, remotePath string) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RemoveDirectory ¶ added in v1.3.0
func (*Client) SFTPClient ¶
type ProgressCallback ¶
type ProgressCallback func(TransferProgress)
type RemoteRemoveFS ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.