Documentation
¶
Index ¶
- type Entry
- func (e *Entry) Close() error
- func (e Entry) Info() (fs.FileInfo, error)
- func (e Entry) IsDir() bool
- func (e Entry) ModTime() time.Time
- func (e Entry) Mode() fs.FileMode
- func (e Entry) Name() string
- func (e *Entry) Read(b []byte) (int, error)
- func (e Entry) Size() int64
- func (e Entry) Stat() (fs.FileInfo, error)
- func (e Entry) Sys() interface{}
- func (e Entry) Type() fs.FileMode
- type FSOption
- type Filesystem
- func (f *Filesystem) Add(name string) (int, error)
- func (f *Filesystem) AddVirtual(name string, data []byte) (int, error)
- func (f *Filesystem) Conn() *sqlx.DB
- func (f *Filesystem) Flush() error
- func (f *Filesystem) Open(name string) (fs.File, error)
- func (f *Filesystem) ReadDir(name string) ([]fs.DirEntry, error)
- func (f *Filesystem) ReadFile(name string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
func (*Filesystem) Add ¶
func (f *Filesystem) Add(name string) (int, error)
Add indexes a disk-backed file into the in-memory filesystem. Subsequent operations on disk-backed files pass through to the underlying os.File implementation.
func (*Filesystem) AddVirtual ¶
func (f *Filesystem) AddVirtual(name string, data []byte) (int, error)
AddVirtual creates a virtual in-memory entry for a virtual file. Flush must be called to persist this virtual file to disk. It may be operated on by while in memory.
func (*Filesystem) Conn ¶
func (f *Filesystem) Conn() *sqlx.DB
Conn returns the underlying database connection to execute arbitrary SQL
func (*Filesystem) Flush ¶
func (f *Filesystem) Flush() error
Flush writes all virtual files to disk
func (*Filesystem) Open ¶
func (f *Filesystem) Open(name string) (fs.File, error)
Open returns an fs.File or a fs.PathError if the file does not exist
Click to show internal directories.
Click to hide internal directories.