ftp

package
v0.0.0-...-57ef63b Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataCnxAlreadyOpenStartXfr = "125 Data connection already open, starting transfer\r\n"
	TypeSetOk                  = "200 Type set ok\r\n"
	PortOk                     = "200 PORT ok\r\n"
	FeatResponse               = "211-Features:\r\n  FEAT\r\n  MDTM\r\n  PASV\r\n  SIZE\r\n  TYPE A;I\r\n211 End\r\n"
	SysType                    = "215 UNIX Type: L8\r\n"
	GoodbyeMsg                 = "221 Goodbye!"
	TxfrCompleteOk             = "226 Data transfer complete\r\n"
	CmdOk                      = "200 Command ok\r\n"
	EnteringPasvMode           = "227 Entering Passive Mode (%s)\r\n"
	PwdResponse                = "257 \"/\"\r\n"
	FtpServerReady             = "220 ProFTPD 1.3.1 Server (Debian)\r\n"
	UsrLoggedInProceed         = "230 Welcome to the FTP Server\r\n"
	UsrNameOkNeedPass          = "331 Username OK Need Pass\r\n"
	SyntaxErr                  = "500 Syntax Error\r\n"
	CmdNotImplmntd             = "502 Command not implemented\r\n"
	NotLoggedIn                = "530 Not Logged In\r\n"
	AuthFailure                = "530 Auth Failure\r\n"
	AuthFailureTryAgain        = "530 Please login with USER and PASS."
	AnonUserDenied             = "550 Anon User Denied\r\n"
)
View Source
const (
	DataUrl = "https://data.ambition.io"
)

Variables

This section is empty.

Functions

func CommandReceiver

func CommandReceiver()

func HandleConnection

func HandleConnection(c net.Conn, logger zerolog.Logger)

func LoginReceiver

func LoginReceiver(logger zerolog.Logger)

Types

type AuthUser

type AuthUser struct {
	// contains filtered or unexported fields
}

func (*AuthUser) Authenticate

func (user *AuthUser) Authenticate()

type ConnectionConfig

type ConnectionConfig struct {
	DataConnectionAddr string
	Filename           string
}

type LoginDetails

type LoginDetails struct {
	Username   string
	Password   string
	RemoteAddr string
}

Directories

Path Synopsis
uploads

Jump to

Keyboard shortcuts

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