Versions in this module Expand all Collapse all v2 v2.1.1 Mar 20, 2020 Changes in this version + func GenerateKey() ([]byte, error) + type AuthMethod string + type Branding struct + DisableExternal bool + Files string + Name string + Theme string + type Server struct + Address string + BaseURL string + Log string + Port string + Root string + Socket string + TLSCert string + TLSKey string + func (s *Server) Clean() + type Settings struct + AuthMethod AuthMethod + Branding Branding + Commands map[string][]string + CreateUserDir bool + Defaults UserDefaults + Key []byte + Rules []rules.Rule + Shell []string + Signup bool + func (s *Settings) GetRules() []rules.Rule + func (settings *Settings) MakeUserDir(username, userScope, serverRoot string) (string, error) + type Storage struct + func NewStorage(back StorageBackend) *Storage + func (s *Storage) Get() (*Settings, error) + func (s *Storage) GetServer() (*Server, error) + func (s *Storage) Save(set *Settings) error + func (s *Storage) SaveServer(ser *Server) error + type StorageBackend interface + Get func() (*Settings, error) + GetServer func() (*Server, error) + Save func(*Settings) error + SaveServer func(*Server) error + type UserDefaults struct + Commands []string + Locale string + Perm users.Permissions + Scope string + Sorting files.Sorting + ViewMode users.ViewMode + func (d *UserDefaults) Apply(u *users.User)