sqlite

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

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

func (*File) Close

func (f *File) Close() error

Close implements webdav.File.

func (*File) Read

func (f *File) Read(p []byte) (n int, err error)

Read implements webdav.File.

func (*File) Readdir

func (f *File) Readdir(count int) ([]os.FileInfo, error)

Readdir implements webdav.File.

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (int64, error)

Seek implements webdav.File.

func (*File) Stat

func (f *File) Stat() (os.FileInfo, error)

Stat implements webdav.File.

func (*File) Write

func (f *File) Write(p []byte) (n int, err error)

Write implements webdav.File with a reliable streaming approach for large files.

type FileSystem

type FileSystem struct {
	// contains filtered or unexported fields
}

func NewFileSystem

func NewFileSystem(dbPath string) *FileSystem

func (*FileSystem) Mkdir

func (f *FileSystem) Mkdir(ctx context.Context, name string, perm os.FileMode) error

Mkdir implements webdav.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.

func (*FileSystem) Rename

func (f *FileSystem) Rename(ctx context.Context, oldName string, newName string) error

Rename implements webdav.FileSystem.

func (*FileSystem) Stat

func (f *FileSystem) Stat(ctx context.Context, name string) (os.FileInfo, error)

Stat implements webdav.FileSystem.

type Options

type Options struct {
	Path string `mapstructure:"path" validate:"required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL