Documentation ¶
Index ¶
- Variables
- type FtpPermission
- type FtpUser
- func (f *FtpUser) Add() (pk interface{}, err error)
- func (f *FtpUser) Allowed(path string, modification bool) bool
- func (f *FtpUser) CheckPasswd(username string, password string) (bool, error)
- func (f *FtpUser) Edit(mw func(db.Result) db.Result, args ...interface{}) error
- func (f *FtpUser) Exists(username string, excludeIDs ...uint) (bool, error)
- func (f *FtpUser) ExistsAvailable() (bool, error)
- func (f *FtpUser) GetRootPathOnce(username string) (string, error)
- func (f *FtpUser) RootPath(username string) (basePath string, err error)
- type FtpUserAndGroup
- type FtpUserGroup
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FtpPermission ¶ added in v1.3.1
type FtpPermission struct {
*dbschema.NgingFtpPermission
}
func NewFtpPermission ¶ added in v1.3.1
func NewFtpPermission(ctx echo.Context) *FtpPermission
func (*FtpPermission) DeleteByTarget ¶ added in v1.3.1
func (f *FtpPermission) DeleteByTarget(targetType string, targetID uint) error
func (*FtpPermission) Exists ¶ added in v1.3.1
func (f *FtpPermission) Exists(targetType string, targetID uint) (bool, error)
func (*FtpPermission) GetByTarget ¶ added in v1.3.1
func (f *FtpPermission) GetByTarget(targetType string, targetID uint) error
func (*FtpPermission) Save ¶ added in v1.3.1
func (f *FtpPermission) Save() (pk interface{}, err error)
type FtpUser ¶
type FtpUser struct { *dbschema.NgingFtpUser // contains filtered or unexported fields }
func NewFtpUser ¶
func (*FtpUser) CheckPasswd ¶
func (*FtpUser) ExistsAvailable ¶ added in v1.3.3
func (*FtpUser) GetRootPathOnce ¶ added in v1.3.1
type FtpUserAndGroup ¶
type FtpUserAndGroup struct { *dbschema.NgingFtpUser Group *dbschema.NgingFtpUserGroup `db:"-,relation=id:group_id|gtZero"` }
type FtpUserGroup ¶
type FtpUserGroup struct {
*dbschema.NgingFtpUserGroup
}
func NewFtpUserGroup ¶
func NewFtpUserGroup(ctx echo.Context) *FtpUserGroup
func (*FtpUserGroup) ExistsOther ¶
func (f *FtpUserGroup) ExistsOther(name string, id uint) (bool, error)
func (*FtpUserGroup) ListByActive ¶
func (f *FtpUserGroup) ListByActive(page int, size int) (func() int64, []*dbschema.NgingFtpUserGroup, error)
Click to show internal directories.
Click to hide internal directories.