Documentation
¶
Index ¶
- Variables
- type Error
- type FS
- func (fs *FS) Close() error
- func (fs *FS) Create(name string) (risoros.File, error)
- func (fs *FS) Mkdir(name string, perm risoros.FileMode) error
- func (fs *FS) MkdirAll(pth string, perm risoros.FileMode) error
- func (fs *FS) Open(name string) (risoros.File, error)
- func (fs *FS) OpenFile(name string, flag int, perm risoros.FileMode) (risoros.File, error)
- func (fs *FS) ReadDir(name string) ([]risoros.DirEntry, error)
- func (fs *FS) ReadFile(name string) ([]byte, error)
- func (fs *FS) Remove(name string) error
- func (fs *FS) RemoveAll(pth string) error
- func (fs *FS) Rename(oldpath, newpath string) error
- func (fs *FS) Stat(name string) (risoros.FileInfo, error)
- func (fs *FS) Symlink(oldname, newname string) error
- func (fs *FS) Wait(ctx context.Context) error
- func (fs *FS) WalkDir(root string, fn risoros.WalkDirFunc) error
- func (fs *FS) WriteFile(name string, data []byte, perm risoros.FileMode) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalid = os.ErrInvalid ErrNotExist = os.ErrNotExist ErrIsDirectory = memfs.ErrIsDirectory ErrSymlinksNotSupported = errors.New("symlinks not supported") ErrBadDescriptor = errors.New("bad descriptor") ErrNotSynced = errors.New("filesystem not synchronized") )
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
func (*FS) OpenFile ¶
OpenFile opens a file with specified flags (cache structure + NATS for content)
Click to show internal directories.
Click to hide internal directories.