Versions in this module Expand all Collapse all v0 v0.1.0 Sep 25, 2020 Changes in this version + type Client struct + func Dial(hosts ...string) (*Client, error) + func DialConfig(config Config, hosts ...string) (*Client, error) + func (c *Client) Close() error + func (c *Client) Delete(path string) error + func (c *Client) Getwd() (string, error) + func (c *Client) Mkdir(path string) (string, error) + func (c *Client) OpenRawConn() (RawConn, error) + func (c *Client) ReadDir(path string) ([]os.FileInfo, error) + func (c *Client) Rename(from, to string) error + func (c *Client) Retrieve(path string, dest io.Writer) ftpError + func (c *Client) Rmdir(path string) error + func (c *Client) Stat(path string) (os.FileInfo, error) + func (c *Client) Store(path string, src io.Reader) ftpError + type Config struct + ActiveListenAddr string + ActiveTransfers bool + ConnectionsPerHost int + DisableEPSV bool + DisableMLSD bool + IPv6Lookup bool + Logger io.Writer + Password string + ServerLocation *time.Location + TLSConfig *tls.Config + TLSMode TLSMode + Timeout time.Duration + User string + type Error interface + Code func() int + Message func() string + Temporary func() bool + type RawConn interface + Close func() error + PrepareDataConn func() (func() (net.Conn, error), error) + ReadResponse func() (int, string, error) + SendCommand func(f string, args ...interface{}) (int, string, error) + type TLSMode int + const TLSExplicit + const TLSImplicit