Documentation ¶
Overview ¶
Package ftp handles the ftp server main class. Import this and call the New method.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the FTP server structure
func New ¶
func New(commandPort int, tlsPort int, cert *tls.Certificate, connectionTimeout time.Duration, minPASVPort, maxPASVPort int, authFunction session.AuthenticatorFunc, fp fs.FileProvider) *Server
New creates a plain and secure FTP Server (plain and TLS).
func NewPlain ¶
func NewPlain(commandPort int, cert *tls.Certificate, connectionTimeout time.Duration, minPASVPort, maxPASVPort int, authFunction session.AuthenticatorFunc, fp fs.FileProvider) *Server
NewPlain creates a new plain (ie without explicit TLS port) FTP Server. If you pass nil as certs parameter the server won't support AUTH TLS explicit encryption.
func NewTLS ¶
func NewTLS(tlsPort int, cert *tls.Certificate, connectionTimeout time.Duration, minPASVPort, maxPASVPort int, authFunction session.AuthenticatorFunc, fp fs.FileProvider) *Server
NewTLS creates a secure FTP Server (explicit only)
Directories ¶
Path | Synopsis |
---|---|
Package datachannel handles the data sink between the FTP Server and the client
|
Package datachannel handles the data sink between the FTP Server and the client |
Package fs exposes the required interface needed by the FTP Server in order to use the fs as backend file system
|
Package fs exposes the required interface needed by the FTP Server in order to use the fs as backend file system |
azure
Package azureFS implements fs.FileProvider and handles Azure blob storage
|
Package azureFS implements fs.FileProvider and handles Azure blob storage |
azure/azureBlob
Package azureBlob implements the fs interfaces for the local file system
|
Package azureBlob implements the fs interfaces for the local file system |
azure/azureContainer
Package azureContainer implements fs.File but is specific for Azure containers
|
Package azureContainer implements fs.File but is specific for Azure containers |
localFS
Package localFS implements the fs interfaces for the local file system
|
Package localFS implements the fs interfaces for the local file system |
localFS/physicalFile
Package physicalFile implements the fs interfaces for the local file system
|
Package physicalFile implements the fs interfaces for the local file system |
Package portassigner implements a thread safe port assigner in a predefined range
|
Package portassigner implements a thread safe port assigner in a predefined range |
Package session handles the FTP session state
|
Package session handles the FTP session state |
securableConn
Package securableConn hides the difference between a plain text connection and an encrypted one so there is no need to track the difference from outside.
|
Package securableConn hides the difference between a plain text connection and an encrypted one so there is no need to track the difference from outside. |
Click to show internal directories.
Click to hide internal directories.