mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
20 lines
577 B
Go
20 lines
577 B
Go
package filer2
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
type FilerStore interface {
|
|
// GetName gets the name to locate the configuration in filer.toml file
|
|
GetName() string
|
|
// Initialize initializes the file store
|
|
Initialize(configuration Configuration) error
|
|
InsertEntry(*Entry) error
|
|
UpdateEntry(*Entry) (err error)
|
|
FindEntry(FullPath) (entry *Entry, err error)
|
|
DeleteEntry(FullPath) (err error)
|
|
ListDirectoryEntries(dirPath FullPath, startFileName string, includeStartFile bool, limit int) ([]*Entry, error)
|
|
}
|
|
|
|
var ErrNotFound = errors.New("filer: no entry is found in filer store")
|