Versions in this module Expand all Collapse all v3 v3.6.4 Nov 29, 2021 v3.6.3 Nov 21, 2021 Changes in this version + func SetDefaults(c *Config) v3.6.2 Oct 13, 2021 v3.6.1 Sep 8, 2021 v3.6.0 Sep 6, 2021 v3.5.7 Aug 12, 2021 v3.5.6 Jul 29, 2021 v3.5.5 Jul 23, 2021 Changes in this version + var DefaultConfig = &Config + var DefaultPidFile = `ftp.pid` + func Fixed(c *Config) + type Auth struct + func NewAuth() *Auth + func (a *Auth) CheckPasswd(ftpCtx *ftpserver.Context, username string, password string) (bool, error) + type Config struct + CertFile string + DBType string + ExplicitFTPS bool + FTPOptions map[string]string + FTPStoreType string + Hostname string + KeyFile string + Name string + PassivePorts string + PidFile string + Port int + PublicIP string + TLS bool + WelcomeMessage string + func (c *Config) Init() *Config + func (c *Config) SetAuth(auth ftpserver.Auth) *Config + func (c *Config) SetAuthByType(storeType string) *Config + func (c *Config) SetDriver(driver ftpserver.Driver) *Config + func (c *Config) SetPerm(perm ftpserver.Perm, owner string, group string) *Config + func (c *Config) SetPermByType(storeType string, owner string, group string) *Config + func (c *Config) SetPort(port int) *Config + func (c *Config) SetStoreByType(storeType string, options ...map[string]string) *Config + func (c *Config) Start() error + type FileDriver struct + func (driver *FileDriver) ChangeDir(ftpCtx *ftpserver.Context, path string) error + func (driver *FileDriver) DeleteDir(ftpCtx *ftpserver.Context, path string) error + func (driver *FileDriver) DeleteFile(ftpCtx *ftpserver.Context, path string) error + func (driver *FileDriver) GetFile(ftpCtx *ftpserver.Context, path string, offset int64) (int64, io.ReadCloser, error) + func (driver *FileDriver) ListDir(ftpCtx *ftpserver.Context, path string, callback func(os.FileInfo) error) error + func (driver *FileDriver) MakeDir(ftpCtx *ftpserver.Context, path string) error + func (driver *FileDriver) PutFile(ftpCtx *ftpserver.Context, destPath string, data io.Reader, offset int64) (int64, error) + func (driver *FileDriver) Rename(ftpCtx *ftpserver.Context, fromPath string, toPath string) error + func (driver *FileDriver) Stat(ftpCtx *ftpserver.Context, path string) (os.FileInfo, error) + type FileInfo struct + func (f *FileInfo) Group() string + func (f *FileInfo) Mode() os.FileMode + func (f *FileInfo) Owner() string + type Perm struct + func NewPerm(owner, group string) *Perm Other modules containing this package github.com/admpub/nging