Documentation ¶
Overview ¶
Package ftp contains an FTP client implementation that supports health checks and tracing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
The Conn type represents a connection to an FTP server.
func Open ¶
Open a connection to the specified FTP server, applying any provided options. See the Option type for configuration options.
func (*Conn) ListDir ¶
ListDir returns a slice of os.FileInfo implementations for all files/directories found at the given path of the FTP server.
func (*Conn) NewReader ¶
func (c *Conn) NewReader(path string) (io.ReadCloser, error)
NewReader returns a new io.ReadCloser implementation that reads the content of the file at the specified path.
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
FileInfo is an os.FileInfo implementation that represents FTP file information.
type Option ¶
type Option func(c *config)
The Option type is a function used to configure the connection to the FTP server.
func WithCredentials ¶
WithCredentials will cause the client to authenticate on open using the provided username and password combination.