Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentStore ¶ added in v0.26.0
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
Filesystem provides io/fs.FS compatible two-layer read-only filesystem with preferred source being DocumentStore and native OS FS acting as fallback.
This allows for reading files in a directory while reflecting unsaved changes.
func NewFilesystem ¶
func NewFilesystem(docStore DocumentStore) *Filesystem
func (*Filesystem) ReadDir ¶ added in v0.6.0
func (fs *Filesystem) ReadDir(name string) ([]fs.DirEntry, error)
func (*Filesystem) ReadFile ¶ added in v0.6.0
func (fs *Filesystem) ReadFile(name string) ([]byte, error)
func (*Filesystem) SetLogger ¶ added in v0.10.0
func (fs *Filesystem) SetLogger(logger *log.Logger)
Click to show internal directories.
Click to hide internal directories.