Documentation ¶
Index ¶
- Constants
- Variables
- func AddToMemDir(dir *FileData, f *FileData)
- func ChangeFileName(f *FileData, newname string)
- func InitializeDir(d *FileData)
- func NewMemMapFs() afero.Fs
- func RemoveFromMemDir(dir *FileData, f *FileData)
- func SetGID(f *FileData, gid int)
- func SetModTime(f *FileData, mtime time.Time)
- func SetMode(f *FileData, mode os.FileMode)
- func SetUID(f *FileData, uid int)
- type Dir
- type DirMap
- 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(count int) (res []os.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() (os.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
- type MemMapFs
- func (m *MemMapFs) Chmod(name string, mode os.FileMode) error
- func (m *MemMapFs) Chown(name string, uid, gid int) error
- func (m *MemMapFs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (m *MemMapFs) Create(name string) (afero.File, error)
- func (m *MemMapFs) List()
- func (m *MemMapFs) LstatIfPossible(name string) (os.FileInfo, bool, error)
- func (m *MemMapFs) Mkdir(name string, perm os.FileMode) error
- func (m *MemMapFs) MkdirAll(path string, perm os.FileMode) error
- func (*MemMapFs) Name() string
- func (m *MemMapFs) Open(name string) (afero.File, error)
- func (m *MemMapFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (m *MemMapFs) Remove(name string) error
- func (m *MemMapFs) RemoveAll(path string) error
- func (m *MemMapFs) Rename(oldname, newname string) error
- func (m *MemMapFs) Stat(name string) (os.FileInfo, error)
Constants ¶
View Source
const FilePathSeparator = string(filepath.Separator)
Variables ¶
Functions ¶
func AddToMemDir ¶
func ChangeFileName ¶
func InitializeDir ¶
func InitializeDir(d *FileData)
func NewMemMapFs ¶ added in v1.8.0
func NewMemMapFs() afero.Fs
func RemoveFromMemDir ¶
func SetModTime ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func NewFileHandle ¶
func NewReadOnlyFileHandle ¶
type FileData ¶
func CreateFile ¶
type MemMapFs ¶ added in v1.8.0
type MemMapFs struct {
// contains filtered or unexported fields
}
func (*MemMapFs) LstatIfPossible ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.