ftp

package
v0.0.0-...-1310e1d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 11 Imported by: 0

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)

func (*Server) Accept

func (srv *Server) Accept() error

Accept starts the FTP server the server lives in a separate go func.

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
fs
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL