Documentation ¶
Overview ¶
Package ftps implements a simple FTPS client.
Index ¶
- type Client
- 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
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client FTPS.
func Dial ¶
func Dial(ctx context.Context, opt DialOptions) (*Client, error)
Dial a FTPS server and return a Client.
func (*Client) RemoveFile ¶
RemoveFile removes a file.
Click to show internal directories.
Click to hide internal directories.