Versions in this module Expand all Collapse all v0 v0.20.2 Sep 6, 2021 Changes in this version + var ErrNotFound = errors.New("naza filesystemlayer: not found") + type FslDisk struct + func (f *FslDisk) Create(name string) (IFile, error) + func (f *FslDisk) MkdirAll(path string, perm uint32) error + func (f *FslDisk) ReadFile(filename string) ([]byte, error) + func (f *FslDisk) Remove(name string) error + func (f *FslDisk) RemoveAll(path string) error + func (f *FslDisk) Rename(oldpath string, newpath string) error + func (f *FslDisk) Type() FslType + func (f *FslDisk) WriteFile(filename string, data []byte, perm uint32) error + type FslMemory struct + func NewFslMemory() *FslMemory + func (f *FslMemory) Create(name string) (IFile, error) + func (f *FslMemory) MkdirAll(path string, perm uint32) error + func (f *FslMemory) ReadFile(filename string) ([]byte, error) + func (f *FslMemory) Remove(name string) error + func (f *FslMemory) RemoveAll(path string) error + func (f *FslMemory) Rename(oldpath string, newpath string) error + func (f *FslMemory) Type() FslType + func (f *FslMemory) WriteFile(filename string, data []byte, perm uint32) error + type FslType int + const FslTypeDisk + const FslTypeMemory + type IFile interface + Close func() error + Write func(b []byte) (n int, err error) + type IFileSystemLayer interface + Create func(name string) (IFile, error) + MkdirAll func(path string, perm uint32) error + ReadFile func(filename string) ([]byte, error) + Remove func(name string) error + RemoveAll func(path string) error + Rename func(oldpath string, newpath string) error + Type func() FslType + WriteFile func(filename string, data []byte, perm uint32) error + var DefaultDiskFileSystemLayer IFileSystemLayer + var DefaultMemoryFileSystemLayer IFileSystemLayer + func FslFactory(t FslType) IFileSystemLayer