Versions in this module Expand all Collapse all v1 v1.0.4 Feb 15, 2024 Changes in this version type DialOptions + InsecureUnencrypted bool v1.0.3 Apr 20, 2021 v1.0.2 May 27, 2020 Changes in this version type DialOptions + ExplicitTLS bool v1.0.1 May 22, 2020 v1.0.0 May 22, 2020 Changes in this version + type Client struct + func Dial(ctx context.Context, opt DialOptions) (*Client, error) + func (c *Client) Chdir(dir string) error + func (c *Client) Close() error + func (c *Client) Download(ctx context.Context, name string, w io.Writer) error + func (c *Client) Getwd() (dir string, err error) + func (c *Client) List(ctx context.Context) ([]File, error) + func (c *Client) Mkdir(name string) error + func (c *Client) RemoveDir(name string) error + func (c *Client) RemoveFile(name string) error + func (c *Client) Upload(ctx context.Context, name string, r io.Reader) error + type DialOptions struct + Host string + Passowrd string + Port int + TLSConfig *tls.Config + Username string + type File struct + Name string