mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-30 15:19:01 +08:00
14 lines
417 B
Go
14 lines
417 B
Go
package filer2
|
|
|
|
import "errors"
|
|
|
|
type FilerStore interface {
|
|
InsertEntry(*Entry) (error)
|
|
UpdateEntry(*Entry) (err error)
|
|
FindEntry(FullPath) (found bool, entry *Entry, err error)
|
|
DeleteEntry(FullPath) (fileEntry *Entry, err error)
|
|
ListDirectoryEntries(dirPath FullPath, startFileName string, inclusive bool, limit int) ([]*Entry, error)
|
|
}
|
|
|
|
var ErrNotFound = errors.New("filer: no entry is found in filer store")
|