aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filerstore.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer2/filerstore.go')
-rw-r--r--weed/filer2/filerstore.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/weed/filer2/filerstore.go b/weed/filer2/filerstore.go
new file mode 100644
index 000000000..e90ec15ed
--- /dev/null
+++ b/weed/filer2/filerstore.go
@@ -0,0 +1,13 @@
+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")