Documentation
¶
Index ¶
- Variables
- func EnsureStandaloneFtpIdentity() (uint, uint, error)
- func FtpStatus() (bool, bool)
- func ValidateFtpRootPath(rootPath string) error
- type Fail2ban
- type FirewallClient
- type Ftp
- func (f *Ftp) LoadList() ([]FtpList, error)
- func (f *Ftp) LoadLogs(user, operation string) ([]FtpLog, error)
- func (f *Ftp) Operate(operate string) error
- func (f *Ftp) Reload() error
- func (f *Ftp) SetPasswd(username, passwd string) error
- func (f *Ftp) SetPath(username, path string, uid, gid uint) error
- func (f *Ftp) SetStatus(username, status string) error
- func (f *Ftp) Status() (bool, bool)
- func (f *Ftp) UserAdd(username, passwd, path string, uid, gid uint) error
- func (f *Ftp) UserDel(username string) error
- type FtpClient
- type FtpList
- type FtpLog
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFtpUnsafePath = errors.New("FTP root path is unsafe")
Functions ¶
func ValidateFtpRootPath ¶
Types ¶
type Fail2ban ¶
type Fail2ban struct{}
func NewFail2Ban ¶
func (*Fail2ban) ListBanned ¶
func (*Fail2ban) ListIgnore ¶
type FirewallClient ¶
type FtpClient ¶
type FtpClient interface {
Status() (bool, bool)
Operate(operate string) error
LoadList() ([]FtpList, error)
UserAdd(username, passwd, path string, uid, gid uint) error
UserDel(username string) error
SetPasswd(username, passwd string) error
SetPath(username, path string, uid, gid uint) error
Reload() error
LoadLogs() ([]FtpLog, error)
}
Click to show internal directories.
Click to hide internal directories.