Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) Download(path string, output io.Writer, offset int64) error
- func (c *Client) Lstat(path string) (os.FileInfo, error)
- func (c *Client) Mirror(path string, localParentPath string, resume bool) error
- func (c *Client) Stat(path string) (os.FileInfo, error)
- type ClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client communicates with the SFTP to download files/pathes
func Connect ¶
func Connect(config *ClientConfig) (*Client, error)
Connect to a host with this given config
func (*Client) Download ¶
Download a file from the given path to the output writer with the given offset of the remote file
func (*Client) Lstat ¶
Lstat gets information for the given path, if it is a symbolic link, it will describe the symbolic link
Click to show internal directories.
Click to hide internal directories.