Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { *User BaseURL string AbsoluteURL string AddrPath string Token string // Anti CSRF token HugoEnabled bool // Enables the Hugo plugin for File Manager Users map[string]*User WebDavURL string CurrentUser *User }
Config is a configuration for browsing in a particular path.
type User ¶
type User struct { Scope string `json:"-"` // Path the user have access FileSystem webdav.FileSystem `json:"-"` // The virtual file system the user have access Handler *webdav.Handler `json:"-"` // The WebDav HTTP Handler StyleSheet string `json:"-"` // Costum stylesheet FrontMatter string `json:"-"` // Default frontmatter to save files in AllowNew bool // Can create files and folders AllowEdit bool // Can edit/rename files AllowCommands bool // Can execute commands Commands []string // Available Commands Rules []*Rule `json:"-"` // Access rules }
User contains the configuration for each user
Click to show internal directories.
Click to hide internal directories.