Documentation ¶
Index ¶
- Variables
- func AddToMemDir(dir *FileData, f *FileData)
- func ChangeFileName(f *FileData, newname string)
- func InitializeDir(d *FileData)
- func RemoveFromMemDir(dir *FileData, f *FileData)
- func SetGID(f *FileData, gid int)
- func SetModTime(f *FileData, mtime time.Time)
- func SetMode(f *FileData, mode fs.FileMode)
- func SetUID(f *FileData, uid int)
- type Dir
- type DirMap
- type FS
- func (m *FS) Chmod(name string, mode fs.FileMode) error
- func (m *FS) Chown(name string, uid, gid int) error
- func (m *FS) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (m *FS) Create(name string) (fs.File, error)
- func (m *FS) Mkdir(name string, perm fs.FileMode) error
- func (m *FS) MkdirAll(path string, perm fs.FileMode) error
- func (m *FS) Open(name string) (fs.File, error)
- func (m *FS) OpenFile(name string, flag int, perm fs.FileMode) (fs.File, error)
- func (m *FS) Remove(name string) error
- func (m *FS) RemoveAll(path string) error
- func (m *FS) Rename(oldname, newname string) error
- func (m *FS) Stat(name string) (fs.FileInfo, error)
- type File
- func (f *File) Close() error
- func (f File) Data() *FileData
- func (f *File) Info() *FileInfo
- func (f *File) Name() string
- func (f *File) Open() error
- func (f *File) Read(b []byte) (n int, err error)
- func (f *File) ReadAt(b []byte, off int64) (n int, err error)
- func (f *File) ReadDir(n int) ([]fs.DirEntry, error)
- func (f *File) Readdir(count int) (res []fs.FileInfo, err error)
- func (f *File) Readdirnames(n int) (names []string, err error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (fs.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(b []byte) (n int, err error)
- func (f *File) WriteAt(b []byte, off int64) (n int, err error)
- func (f *File) WriteString(s string) (ret int, err error)
- type FileData
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOutOfRange = errors.New("Out of range")
Functions ¶
func AddToMemDir ¶
func ChangeFileName ¶
func InitializeDir ¶
func InitializeDir(d *FileData)
func RemoveFromMemDir ¶
func SetModTime ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func NewFileHandle ¶
func NewROFileHandle ¶
type FileData ¶
func CreateFile ¶
Click to show internal directories.
Click to hide internal directories.