Documentation
¶
Index ¶
- Constants
- func CreateFileSystemFromOptions(options any) (webdav.FileSystem, error)
- type File
- 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 Options
Constants ¶
View Source
const Type filesystem.Type = "sqlite"
Variables ¶
This section is empty.
Functions ¶
func CreateFileSystemFromOptions ¶
func CreateFileSystemFromOptions(options any) (webdav.FileSystem, error)
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File represents an open file in the SQLite filesystem
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFileSystem ¶
func NewFileSystem(dbPath string) *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.