Documentation ¶
Index ¶
- Variables
- type Manager
- func (m *Manager) Create(username string) error
- func (m *Manager) Delete(username string) error
- func (m *Manager) Exists(username string) (bool, error)
- func (m *Manager) Rename(oldUsername string, newUsername string) error
- func (m *Manager) UserDir(username string) string
- func (m *Manager) WebDAVDirFor(username string) webdav.Dir
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = errors.New("user directory already exists")
ErrAlreadyExists is returned when a user directory can't be created because it already exists.
View Source
var ErrNotADirectory = errors.New("user directory is not a directory")
ErrNotADirectory is returned when something exists at a user directory location that is not a directory.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
Dir string
}
Manager provides functions to manage user-owned content.
Click to show internal directories.
Click to hide internal directories.