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.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/weed/filer2/filerstore.go b/weed/filer2/filerstore.go
new file mode 100644
index 000000000..80822559b
--- /dev/null
+++ b/weed/filer2/filerstore.go
@@ -0,0 +1,18 @@
+package filer2
+
+import (
+ "errors"
+ "github.com/spf13/viper"
+)
+
+type FilerStore interface {
+ GetName() string
+ Initialize(viper *viper.Viper) error
+ InsertEntry(*Entry) error
+ UpdateEntry(*Entry) (err error)
+ FindEntry(FullPath) (entry *Entry, err error)
+ DeleteEntry(FullPath) (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")