Documentation ¶
Index ¶
- Constants
- Variables
- func NewEntry(entry mo_file.Entry) es_filesystem.Entry
- func NewError(err error) es_filesystem.FileSystemError
- func NewFileSystem(ctx dbx_context.Context) es_filesystem.FileSystem
- func NewPath(namespaceId string, path mo_path.DropboxPath) es_filesystem.Path
- func NewPreScanFileSystem(ctl app_control.Control, ctx dbx_context.Context, path mo_path.DropboxPath) (fs es_filesystem.FileSystem, err es_filesystem.FileSystemError)
- func NotFoundError() es_filesystem.FileSystemError
- func ToDropboxEntry(entry es_filesystem.Entry) (mo_file.Entry, error)
- func ToDropboxPath(path es_filesystem.Path) (dbxPath mo_path.DropboxPath, err es_filesystem.FileSystemError)
- type CacheEntryList
- type MsgFileSystemCached
Constants ¶
View Source
const ( FileSystemTypeDropbox = "dropbox" ApiComplexityThreshold = 10_000 )
Variables ¶
View Source
var ( ErrorInvalidEntryDataFormat = errors.New("invalid entry data format") ErrorInvalidEntryType = errors.New("invalid entry type") )
View Source
var (
MFileSystemCached = app_msg.Apply(&MsgFileSystemCached{}).(*MsgFileSystemCached)
)
Functions ¶
func NewError ¶
func NewError(err error) es_filesystem.FileSystemError
func NewFileSystem ¶
func NewFileSystem(ctx dbx_context.Context) es_filesystem.FileSystem
func NewPath ¶
func NewPath(namespaceId string, path mo_path.DropboxPath) es_filesystem.Path
func NewPreScanFileSystem ¶
func NewPreScanFileSystem(ctl app_control.Control, ctx dbx_context.Context, path mo_path.DropboxPath) (fs es_filesystem.FileSystem, err es_filesystem.FileSystemError)
func NotFoundError ¶
func NotFoundError() es_filesystem.FileSystemError
func ToDropboxEntry ¶
func ToDropboxEntry(entry es_filesystem.Entry) (mo_file.Entry, error)
Convert ot Dropbox entry model
func ToDropboxPath ¶
func ToDropboxPath(path es_filesystem.Path) (dbxPath mo_path.DropboxPath, err es_filesystem.FileSystemError)
Types ¶
type CacheEntryList ¶
type CacheEntryList struct {
Entries []string `json:"entries" path:"entries"`
}
type MsgFileSystemCached ¶
Click to show internal directories.
Click to hide internal directories.