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
472 B

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. package filer2
  2. import (
  3. "errors"
  4. "github.com/spf13/viper"
  5. )
  6. type FilerStore interface {
  7. GetName() string
  8. Initialize(viper *viper.Viper) error
  9. InsertEntry(*Entry) error
  10. UpdateEntry(*Entry) (err error)
  11. FindEntry(FullPath) (entry *Entry, err error)
  12. DeleteEntry(FullPath) (err error)
  13. ListDirectoryEntries(dirPath FullPath, startFileName string, inclusive bool, limit int) ([]*Entry, error)
  14. }
  15. var ErrNotFound = errors.New("filer: no entry is found in filer store")