aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filerstore.go
blob: b9f7d11986ce25f7b22d458a0a144bdde1118516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) (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")