Versions in this module Expand all Collapse all v2 v2.1.1 Mar 20, 2020 Changes in this version + func CheckPwd(password, hash string) bool + func HashPwd(password string) (string, error) + type Permissions struct + Admin bool + Create bool + Delete bool + Download bool + Execute bool + Modify bool + Rename bool + Share bool + type Storage struct + func NewStorage(back StorageBackend) *Storage + func (s *Storage) Delete(id interface{}) (err error) + func (s *Storage) Get(baseScope string, id interface{}) (user *User, err error) + func (s *Storage) Gets(baseScope string) ([]*User, error) + func (s *Storage) LastUpdate(id uint) int64 + func (s *Storage) Save(user *User) error + func (s *Storage) Update(user *User, fields ...string) error + type StorageBackend interface + DeleteByID func(uint) error + DeleteByUsername func(string) error + GetBy func(interface{}) (*User, error) + Gets func() ([]*User, error) + Save func(u *User) error + Update func(u *User, fields ...string) error + type User struct + Commands []string + Fs afero.Fs + ID uint + Locale string + LockPassword bool + Password string + Perm Permissions + Rules []rules.Rule + Scope string + Sorting files.Sorting + Username string + ViewMode ViewMode + func (u *User) CanExecute(command string) bool + func (u *User) Clean(baseScope string, fields ...string) error + func (u *User) FullPath(path string) string + func (u *User) GetRules() []rules.Rule + type ViewMode string + const ListViewMode + const MosaicViewMode