Documentation
¶
Index ¶
- type Client
- func (c *Client) Download(filePath string) error
- func (c *Client) DownloadFile(file *os.File) error
- func (c *Client) DownloadWriter(writer io.Writer) error
- func (c *Client) Upload(filePath string) error
- func (c *Client) UploadFile(remoteFilepath string, file *os.File) error
- func (c *Client) UploadReader(remoteFilepath string, source io.Reader) error
- type Entry
- type EntryType
- type FTPS
- func (ftps *FTPS) ChangeWorkingDirectory(path string) (err error)
- func (ftps *FTPS) Connect(host string, port int) (err error)
- func (ftps *FTPS) DeleteFile(path string) (err error)
- func (ftps *FTPS) List() (entries []Entry, err error)
- func (ftps *FTPS) Login(username, password string) (err error)
- func (ftps *FTPS) MakeDirectory(path string) (err error)
- func (ftps *FTPS) PrintWorkingDirectory() (directory string, err error)
- func (ftps *FTPS) Quit() (err error)
- func (ftps *FTPS) RemoveDirectory(path string) (err error)
- func (ftps *FTPS) RetrieveFile(remoteFilepath string, file *os.File) (err error)
- func (ftps *FTPS) RetrieveWriter(remoteFilepath string, w io.Writer) (err error)
- func (ftps *FTPS) StoreFile(remoteFilepath string, f *os.File) (err error)
- func (ftps *FTPS) StoreReader(remoteFilepath string, r io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client FTPS Client
func NewClientWithTLSConfig ¶ added in v1.2.0
func (*Client) DownloadFile ¶
DownloadFile file from server
func (*Client) DownloadWriter ¶ added in v1.1.0
DownloadFile file from server
func (*Client) UploadFile ¶
UploadFile file to Server
type FTPS ¶
func (*FTPS) ChangeWorkingDirectory ¶
func (*FTPS) DeleteFile ¶
func (*FTPS) MakeDirectory ¶
func (*FTPS) PrintWorkingDirectory ¶
func (*FTPS) RemoveDirectory ¶
func (*FTPS) RetrieveFile ¶
func (*FTPS) RetrieveWriter ¶
Click to show internal directories.
Click to hide internal directories.