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.
16 lines
648 B
16 lines
648 B
package flat_namespace
|
|
|
|
import "github.com/chrislusf/seaweedfs/go/filer"
|
|
|
|
type FlatNamespaceStore interface {
|
|
Put(fullFileName string, fid string) (err error)
|
|
Get(fullFileName string) (fid string, err error)
|
|
Delete(fullFileName string) (fid string, err error)
|
|
|
|
//redis store support these functions
|
|
FindDirectory(dirPath string) (dirId filer.DirectoryId, err error)
|
|
ListDirectories(dirPath string) (dirs []filer.DirectoryEntry, err error)
|
|
ListFiles(dirPath string, lastFileName string, limit int) (files []filer.FileEntry, err error)
|
|
DeleteDirectory(dirPath string, recursive bool) (err error)
|
|
Move(fromPath string, toPath string) error
|
|
}
|