Documentation ¶
Index ¶
- func CreateDir(filesystem *fs.FS, parent fs.Dir, user, name string, perm uint32, mode uint8) (fs.Dir, error)
- func CreateFile(filesystem *fs.FS, parent fs.Dir, user, name string, perm uint32, mode uint8) (fs.File, error)
- func Remove(filesystem *fs.FS, f fs.FSNode) error
- type Dir
- type File
- func (f *File) Close(fid uint64) error
- func (f *File) Open(fid uint64, omode proto.Mode) error
- func (f *File) Parent() fs.Dir
- func (f *File) Read(fid uint64, offset uint64, count uint64) ([]byte, error)
- func (f *File) SetParent(d fs.Dir)
- func (f *File) Stat() proto.Stat
- func (f *File) Write(fid uint64, offset uint64, data []byte) (uint32, error)
- func (f *File) WriteStat(s *proto.Stat) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDir ¶
func CreateDir(filesystem *fs.FS, parent fs.Dir, user, name string, perm uint32, mode uint8) (fs.Dir, error)
CreateDir is a function meant to be passed to WithCreateDir. It creates a real directory under the parent
Types ¶
Click to show internal directories.
Click to hide internal directories.