You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
497 B
18 lines
497 B
package filer2
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
type FilerStore interface {
|
|
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, inclusive bool, limit int) ([]*Entry, error)
|
|
}
|
|
|
|
var ErrNotFound = errors.New("filer: no entry is found in filer store")
|