Documentation
¶
Index ¶
- Constants
- func WithContextUser(parent context.Context, user User) context.Context
- type FileSystem
- func (f *FileSystem) Mkdir(ctx context.Context, name string, perm os.FileMode) error
- func (f *FileSystem) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)
- func (f *FileSystem) RemoveAll(ctx context.Context, name string) error
- func (f *FileSystem) Rename(ctx context.Context, oldName string, newName string) error
- func (f *FileSystem) Stat(ctx context.Context, name string) (os.FileInfo, error)
- type Group
- type Operation
- type Rule
- type Rules
- type User
Constants ¶
View Source
const ( OperationMkdir = "mkdir" OperationOpen = "open" OperationRemove = "remove" OperationRename = "rename" OperationStat = "stat" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFileSystem ¶
func NewFileSystem(backend webdav.FileSystem) *FileSystem
func (*FileSystem) OpenFile ¶
func (f *FileSystem) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)
OpenFile implements webdav.FileSystem.
func (*FileSystem) RemoveAll ¶
func (f *FileSystem) RemoveAll(ctx context.Context, name string) error
RemoveAll implements webdav.FileSystem.
Click to show internal directories.
Click to hide internal directories.