Versions in this module Expand all Collapse all v0 v0.1.0 Feb 8, 2024 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, offset int64) (*RetrieveTransfer, error) + func (c *Client) Rmdir(path string) error + func (c *Client) Stat(path string) (os.FileInfo, error) + func (c *Client) Store(path string, offset int64) (*StoreTransfer, error) + type Config struct + ActiveListenAddr string + ActiveTransfers bool + ConnectionsPerHost int + DisableEPSV 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 RetrieveTransfer struct + func (r *RetrieveTransfer) Done() error + func (r *RetrieveTransfer) WriteTo(dest io.Writer) (int64, error) + func (t RetrieveTransfer) Abort() error + type StoreTransfer struct + func (s *StoreTransfer) Done() error + func (s *StoreTransfer) ReadFrom(src io.Reader) (int64, error) + func (t StoreTransfer) Abort() error + type TLSMode int + const TLSExplicit + const TLSImplicit