|
@ -5,6 +5,7 @@ import ( |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
type FilerStore interface { |
|
|
type FilerStore interface { |
|
|
|
|
|
// GetName gets the name to locate the configuration in filer.toml file
|
|
|
GetName() string |
|
|
GetName() string |
|
|
// Initialize initializes the file store
|
|
|
// Initialize initializes the file store
|
|
|
Initialize(configuration Configuration) error |
|
|
Initialize(configuration Configuration) error |
|
@ -12,7 +13,7 @@ type FilerStore interface { |
|
|
UpdateEntry(*Entry) (err error) |
|
|
UpdateEntry(*Entry) (err error) |
|
|
FindEntry(FullPath) (entry *Entry, err error) |
|
|
FindEntry(FullPath) (entry *Entry, err error) |
|
|
DeleteEntry(FullPath) (err error) |
|
|
DeleteEntry(FullPath) (err error) |
|
|
ListDirectoryEntries(dirPath FullPath, startFileName string, inclusive bool, limit int) ([]*Entry, error) |
|
|
|
|
|
|
|
|
ListDirectoryEntries(dirPath FullPath, startFileName string, includeStartFile bool, limit int) ([]*Entry, error) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var ErrNotFound = errors.New("filer: no entry is found in filer store") |
|
|
var ErrNotFound = errors.New("filer: no entry is found in filer store") |