ftp-worker

command
v0.0.0-...-d850007 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 14 Imported by: 0

README

FTP Worker

The FTP worker

Redirect upload (write operation) and download (read operation) as local program calling

Usage

Usage of ftp-worker:
  -hostname string
    	FTP listen hostname
  -port int
    	FTP listen port
  -on-read string
    	Read operation local hook program
  -on-write string
    	Write operation local hook program
  -workdir string
    	Work directory
  -username string
    	Username (default "user")
  -password string
    	Password (default "pass")
  -tls-explicit
    	Explicit FTPS
  -tls-cert-file string
    	TLS Certificate file
  -tls-key-file string
    	TLS Key file
Read hook

Equivalent to:

read-hook-program <filename> | <file-content>

Environions:

Field Name Type
FTP_ACTION READ
FTP_PATH file path
FTP_READ_OFFSET integer
Write hook

Equivalent to:

<file-content> | write-hook-program <filename>

Environments:

Field Name Type
FTP_ACTION WRITE
FTP_PATH file path

Example

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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