Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("filer: no entry is found in filer store")
Functions ¶
Types ¶
type ApiRequest ¶
type DirectoryEntry ¶
type DirectoryEntry struct { Name string //dir name without path Id DirectoryId }
type DirectoryId ¶
type DirectoryId int32
type Filer ¶
type Filer interface { CreateFile(fullFileName string, fid string) (err error) FindFile(fullFileName string) (fid string, err error) DeleteFile(fullFileName string) (fid string, err error) //Optional functions. embedded filer support these FindDirectory(dirPath string) (dirId DirectoryId, err error) ListDirectories(dirPath string) (dirs []DirectoryEntry, err error) ListFiles(dirPath string, lastFileName string, limit int) (files []FileEntry, err error) DeleteDirectory(dirPath string, recursive bool) (err error) Move(fromPath string, toPath string) (err error) }
type GetFileContentResult ¶
func GetFileContent ¶
func GetFileContent(server string, fileId string) (ret *GetFileContentResult, err error)
type GetFileSizeResult ¶
func GetFileSize ¶
func GetFileSize(server string, fileId string) (ret *GetFileSizeResult, err error)
type ListDirectoriesResult ¶
type ListDirectoriesResult struct { Directories []DirectoryEntry Error string `json:"error,omitempty"` }
func ListDirectories ¶
func ListDirectories(server string, directory string) (ret *ListDirectoriesResult, err error)
Click to show internal directories.
Click to hide internal directories.