Documentation ¶
Index ¶
- type ExportOption
- type FileDispatcher
- type FileInfo
- type History
- type HistoryEntry
- type Library
- type LibraryInfo
- type Mtime
- type Palette
- type SmartFolder
- type SmartFolderCondition
- type SmartFolderRule
- type SmbFs
- func (s *SmbFs) Chmod(name string, mode os.FileMode) error
- func (s *SmbFs) Chown(name string, uid, gid int) error
- func (s *SmbFs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (s *SmbFs) Close() error
- func (s *SmbFs) Create(name string) (afero.File, error)
- func (s *SmbFs) Mkdir(name string, perm os.FileMode) error
- func (s *SmbFs) MkdirAll(path string, perm os.FileMode) error
- func (s *SmbFs) Name() string
- func (s *SmbFs) Open(name string) (afero.File, error)
- func (s *SmbFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (s *SmbFs) Remove(name string) error
- func (s *SmbFs) RemoveAll(path string) error
- func (s *SmbFs) Rename(oldname, newname string) error
- func (s *SmbFs) Stat(name string) (os.FileInfo, error)
- type SmbFsOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExportOption ¶
type FileDispatcher ¶
type FileDispatcher struct {
// contains filtered or unexported fields
}
func NewFolderFilter ¶
func NewFolderFilter(meta *LibraryInfo) FileDispatcher
type FileInfo ¶
type FileInfo struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Size int `json:"size,omitempty"` Btime int64 `json:"btime,omitempty"` Mtime int64 `json:"mtime,omitempty"` Ext string `json:"ext,omitempty"` Tags []any `json:"tags,omitempty"` Folders []any `json:"folders,omitempty"` IsDeleted bool `json:"isDeleted,omitempty"` URL string `json:"url,omitempty"` Annotation string `json:"annotation,omitempty"` ModificationTime int64 `json:"modificationTime,omitempty"` Height int `json:"height,omitempty"` Width int `json:"width,omitempty"` Palettes []Palette `json:"palettes,omitempty"` DeletedTime int64 `json:"deletedTime,omitempty"` LastModified int64 `json:"lastModified,omitempty"` }
type History ¶
type History struct {
// contains filtered or unexported fields
}
func NewHistory ¶
func (*History) Append ¶
func (r *History) Append(h HistoryEntry) error
type HistoryEntry ¶
type LibraryInfo ¶
type LibraryInfo struct { Folders []any `json:"folders,omitempty"` SmartFolders []SmartFolder `json:"smartFolders,omitempty"` QuickAccess []any `json:"quickAccess,omitempty"` TagsGroups []any `json:"tagsGroups,omitempty"` ModificationTime int64 `json:"modificationTime,omitempty"` ApplicationVersion string `json:"applicationVersion,omitempty"` }
type SmartFolder ¶
type SmartFolder struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` ModificationTime int64 `json:"modificationTime,omitempty"` Conditions []SmartFolderCondition `json:"conditions,omitempty"` Children []any `json:"children,omitempty"` }
type SmartFolderCondition ¶
type SmartFolderCondition struct { Rules []SmartFolderRule `json:"rules"` Match string `json:"match"` Boolean string `json:"boolean"` }
func (*SmartFolderCondition) Eval ¶
func (c *SmartFolderCondition) Eval(fileInfo *FileInfo) bool
type SmartFolderRule ¶
type SmartFolderRule struct { Property string `json:"property"` Method string `json:"method"` Value string `json:"value"` }
func (*SmartFolderRule) Eval ¶
func (r *SmartFolderRule) Eval(fileInfo *FileInfo) bool
type SmbFsOption ¶
Click to show internal directories.
Click to hide internal directories.