Documentation ¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) Create(filePath string) (io.ReadWriteCloser, error)
- func (c *Client) Download(filePath string) (io.ReadCloser, error)
- func (c *Client) Info(filePath string) (os.FileInfo, error)
- func (c *Client) Upload(source io.Reader, destination io.Writer, size int) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client provides basic functionality to interact with a SFTP server.
func (*Client) Create ¶
func (c *Client) Create(filePath string) (io.ReadWriteCloser, error)
Create creates a remote/destination file for I/O.
func (*Client) Download ¶
func (c *Client) Download(filePath string) (io.ReadCloser, error)
Download returns remote/destination file for reading.
Click to show internal directories.
Click to hide internal directories.