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.
type DialOptions ¶
type DialOptions struct { Host string Port int // If zero, this will default to 990. Username string Passowrd string // If true, will connect un-encrypted, then upgrade to using AUTH TLS command. ExplicitTLS bool // If true, will NOT attempt to encrypt. InsecureUnencrypted bool TLSConfig *tls.Config }
DialOptions for the FTPS client.
Click to show internal directories.
Click to hide internal directories.