Versions in this module Expand all Collapse all v1 v1.54.4 Nov 23, 2020 Changes in this version + var Command = &cobra.Command + var DefaultOpt = Options + var Opt = DefaultOpt + func AddFlags(flagSet *pflag.FlagSet) + type Driver struct + func (d *Driver) ChangeDir(path string) (err error) + func (d *Driver) CheckPasswd(user, pass string) (ok bool, err error) + func (d *Driver) DeleteDir(path string) (err error) + func (d *Driver) DeleteFile(path string) (err error) + func (d *Driver) GetFile(path string, offset int64) (size int64, fr io.ReadCloser, err error) + func (d *Driver) ListDir(path string, callback func(ftp.FileInfo) error) (err error) + func (d *Driver) MakeDir(path string) (err error) + func (d *Driver) PutFile(path string, data io.Reader, appendData bool) (n int64, err error) + func (d *Driver) Rename(oldName, newName string) (err error) + func (d *Driver) Stat(path string) (fi ftp.FileInfo, err error) + type FileInfo struct + func (f *FileInfo) Group() string + func (f *FileInfo) Mode() os.FileMode + func (f *FileInfo) Owner() string + type Logger struct + func (l *Logger) Print(sessionID string, message interface{}) + func (l *Logger) PrintCommand(sessionID string, command string, params string) + func (l *Logger) PrintResponse(sessionID string, code int, message string) + func (l *Logger) Printf(sessionID string, format string, v ...interface{}) + type Options struct + BasicPass string + BasicUser string + ListenAddr string + PassivePorts string + PublicIP string