Versions in this module Expand all Collapse all v0 v0.1.1 Jul 30, 2024 v0.1.0 May 16, 2022 Changes in this version + const O_ACCMODE + type File struct + func NewFile(readOps *operations.Operations, writeOps *operations.Operations, ...) *File + func (f *File) Close() error + func (f *File) Name() string + func (f *File) Read(p []byte) (n int, err error) + func (f *File) ReadAt(p []byte, off int64) (n int, err error) + func (f *File) Readdir(count int) ([]os.FileInfo, error) + func (f *File) Readdirnames(n int) ([]string, 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(p []byte) (n int, err error) + func (f *File) WriteAt(p []byte, off int64) (n int, err error) + func (f *File) WriteString(s string) (ret int, err error) + type FileFlags struct + Append bool + Read bool + Truncate bool + Write bool + type FileInfo struct + func NewFileInfo(name string, size int64, mode fs.FileMode, modTime time.Time, ...) *FileInfo + func NewFileInfoFromTarHeader(hdr *tar.Header, log logging.StructuredLogger) *FileInfo + func (f *FileInfo) IsDir() bool + func (f *FileInfo) ModTime() time.Time + func (f *FileInfo) Mode() os.FileMode + func (f *FileInfo) Name() string + func (f *FileInfo) Size() int64 + func (f *FileInfo) Sys() interface{} + type STFS struct + func NewSTFS(readOps *operations.Operations, writeOps *operations.Operations, ...) *STFS + func (f *STFS) Chmod(name string, mode os.FileMode) error + func (f *STFS) Chown(name string, uid, gid int) error + func (f *STFS) Chtimes(name string, atime time.Time, mtime time.Time) error + func (f *STFS) Create(name string) (afero.File, error) + func (f *STFS) Initialize(rootProposal string, rootPerm os.FileMode) (root string, err error) + func (f *STFS) LstatIfPossible(name string) (os.FileInfo, bool, error) + func (f *STFS) Mkdir(name string, perm os.FileMode) error + func (f *STFS) MkdirAll(path string, perm os.FileMode) error + func (f *STFS) Name() string + func (f *STFS) Open(name string) (afero.File, error) + func (f *STFS) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error) + func (f *STFS) ReadlinkIfPossible(name string) (string, error) + func (f *STFS) Remove(name string) error + func (f *STFS) RemoveAll(path string) error + func (f *STFS) Rename(oldname, newname string) error + func (f *STFS) Stat(name string) (os.FileInfo, error) + func (f *STFS) SymlinkIfPossible(oldname, newname string) error + type Stat struct — darwin/amd64, js/wasm, windows/amd64 + Atim Timespec + Ctim Timespec + Gid uint32 + Mtim Timespec + Uid uint32 + func NewStat(uid uint32, gid uint32, mtim int64, atim int64, ctim int64) *Stat + type Stat syscall.Stat_t — linux/amd64 + type Timespec struct — darwin/amd64, js/wasm, windows/amd64 + Nsec int64 + Sec int64 + func NsecToTimespec(nsec int64) Timespec + func (ts *Timespec) Nano() int64 + func (ts *Timespec) Unix() (sec int64, nsec int64)