ftp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoTLS = errors.New("no TLS supported")
)

Functions

This section is empty.

Types

type FTPServer

type FTPServer struct {
	Settings   *ftpserver.Settings
	FileSystem afero.Fs
	// contains filtered or unexported fields
}

func (*FTPServer) AuthUser

func (driver *FTPServer) AuthUser(_ ftpserver.ClientContext, user, pass string) (ftpserver.ClientDriver, error)

func (*FTPServer) ClientConnected

func (driver *FTPServer) ClientConnected(cc ftpserver.ClientContext) (string, error)

func (*FTPServer) ClientDisconnected

func (driver *FTPServer) ClientDisconnected(cc ftpserver.ClientContext)

func (*FTPServer) GetSettings

func (driver *FTPServer) GetSettings() (*ftpserver.Settings, error)

func (*FTPServer) GetTLSConfig

func (driver *FTPServer) GetTLSConfig() (*tls.Config, error)

Jump to

Keyboard shortcuts

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