sqlitefs

package
v0.0.0-...-0a0123b Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteFS

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

func NewSQLiteFS

func NewSQLiteFS(db *sql.DB) (*SQLiteFS, error)

func (*SQLiteFS) Open

func (fs *SQLiteFS) Open(name string) (http.File, error)

type SQLiteFile

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

func NewSQLiteFile

func NewSQLiteFile(db *sql.DB, path string) (*SQLiteFile, error)

func (*SQLiteFile) Close

func (f *SQLiteFile) Close() error

func (*SQLiteFile) GetAllFiles

func (f *SQLiteFile) GetAllFiles() ([]os.FileInfo, error)

func (*SQLiteFile) Move

func (f *SQLiteFile) Move(newPath string) error

func (*SQLiteFile) Read

func (f *SQLiteFile) Read(p []byte) (int, error)

func (*SQLiteFile) Readdir

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

func (*SQLiteFile) Remove

func (f *SQLiteFile) Remove() error

func (*SQLiteFile) Seek

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

func (*SQLiteFile) Stat

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

type SQLiteWriter

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

func NewSQLiteWriter

func NewSQLiteWriter(db *sql.DB, path string) *SQLiteWriter

func (*SQLiteWriter) Close

func (w *SQLiteWriter) Close() error

func (*SQLiteWriter) Write

func (w *SQLiteWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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