StorageBackend is the interface to implement for a users storage.
| 9 | |
| 10 | // StorageBackend is the interface to implement for a users storage. |
| 11 | type StorageBackend interface { |
| 12 | GetBy(interface{}) (*User, error) |
| 13 | GetByScope(scope string) (*User, error) |
| 14 | Gets() ([]*User, error) |
| 15 | Save(u *User) error |
| 16 | Update(u *User, fields ...string) error |
| 17 | DeleteByID(uint) error |
| 18 | DeleteByUsername(string) error |
| 19 | CountAdmins() (int, error) |
| 20 | } |
| 21 | |
| 22 | type Store interface { |
| 23 | Get(baseScope string, followExternalSymlinks bool, id interface{}) (user *User, err error) |
no outgoing calls
no test coverage detected