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.

21 lines
669 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/chrislusf/seaweedfs/weed/util"
  5. )
  6. type FilerStore interface {
  7. // GetName gets the name to locate the configuration in filer.toml file
  8. GetName() string
  9. // Initialize initializes the file store
  10. Initialize(configuration util.Configuration) error
  11. InsertEntry(*Entry) error
  12. UpdateEntry(*Entry) (err error)
  13. // err == filer2.ErrNotFound if not found
  14. FindEntry(FullPath) (entry *Entry, err error)
  15. DeleteEntry(FullPath) (err error)
  16. ListDirectoryEntries(dirPath FullPath, startFileName string, includeStartFile bool, limit int) ([]*Entry, error)
  17. }
  18. var ErrNotFound = errors.New("filer: no entry is found in filer store")