MCPcopy
hub / github.com/filebrowser/filebrowser / StorageBackend

Interface StorageBackend

users/storage.go:11–20  ·  view source on GitHub ↗

StorageBackend is the interface to implement for a users storage.

Source from the content-addressed store, hash-verified

9
10// StorageBackend is the interface to implement for a users storage.
11type 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
22type Store interface {
23 Get(baseScope string, followExternalSymlinks bool, id interface{}) (user *User, err error)

Callers 5

GetMethod · 0.65
DeleteMethod · 0.65
DeleteMethod · 0.65
DeleteMethod · 0.65
IsUniqueAdminMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected