Documentation ¶
Index ¶
- Constants
- type Config
- type FileManager
- func (f *FileManager) AddRoot(key string, value root.Root) *FileManager
- func (f *FileManager) GetIndexURL() string
- func (f *FileManager) GetSettingPage() table.Generator
- func (f *FileManager) InitPlugin(srv service.List)
- func (f *FileManager) IsInstalled() bool
- func (f *FileManager) SetPathValidator(fn PathValidator) *FileManager
- type PathValidator
- type Table
Constants ¶
View Source
const ( Name = "filemanager" TableName = "filemanager_setting" ConnectionKey = "filemanager_connection" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AllowUpload bool `json:"allow_upload",yaml:"allow_upload",ini:"allow_upload"` AllowCreateDir bool `json:"allow_create_dir",yaml:"allow_create_dir",ini:"allow_create_dir"` AllowDelete bool `json:"allow_delete",yaml:"allow_delete",ini:"allow_delete"` AllowMove bool `json:"allow_move",yaml:"allow_move",ini:"allow_move"` AllowDownload bool `json:"allow_download",yaml:"allow_download",ini:"allow_download"` AllowRename bool `json:"allow_rename",yaml:"allow_rename",ini:"allow_rename"` Path string `json:"path",yaml:"path",ini:"path"` Title string `json:"title",yaml:"title",ini:"title"` }
type FileManager ¶
func NewFileManager ¶
func NewFileManager(rootPath string, titles ...string) *FileManager
func NewFileManagerWithConfig ¶
func NewFileManagerWithConfig(cfg Config) *FileManager
func (*FileManager) AddRoot ¶
func (f *FileManager) AddRoot(key string, value root.Root) *FileManager
func (*FileManager) GetIndexURL ¶
func (f *FileManager) GetIndexURL() string
func (*FileManager) GetSettingPage ¶
func (f *FileManager) GetSettingPage() table.Generator
func (*FileManager) InitPlugin ¶
func (f *FileManager) InitPlugin(srv service.List)
func (*FileManager) IsInstalled ¶
func (f *FileManager) IsInstalled() bool
func (*FileManager) SetPathValidator ¶
func (f *FileManager) SetPathValidator(fn PathValidator) *FileManager
type PathValidator ¶
Click to show internal directories.
Click to hide internal directories.