Documentation
¶
Index ¶
- type File
- func (File) Close() error
- func (File) Name() string
- func (File) Read(p []byte) (int, error)
- func (File) ReadAt(b []byte, off int64) (n int, err error)
- func (File) ReadDir(n int) ([]fs.DirEntry, error)
- func (File) Readdir(n int) ([]os.FileInfo, error)
- func (File) Readdirnames(n int) ([]string, error)
- func (File) Seek(offset int64, whence int) (ret int64, err error)
- func (File) Stat() (os.FileInfo, error)
- func (File) Sync() error
- func (File) Truncate(size int64) error
- func (File) Write(p []byte) (int, error)
- func (File) WriteAt(b []byte, off int64) (n int, err error)
- func (File) WriteString(s string) (n int, err error)
- type FileSystem
- func (*FileSystem) Chdir(name string) error
- func (*FileSystem) Chmod(name string, mode os.FileMode) error
- func (*FileSystem) Chown(name string, uid, gid int) error
- func (*FileSystem) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (*FileSystem) Create(name string) (absfs.File, error)
- func (*FileSystem) Getwd() (dir string, err error)
- func (*FileSystem) Lchown(name string, uid, gid int) error
- func (*FileSystem) Lstat(name string) (os.FileInfo, error)
- func (*FileSystem) Mkdir(name string, perm os.FileMode) error
- func (*FileSystem) MkdirAll(name string, perm os.FileMode) error
- func (*FileSystem) Open(name string) (absfs.File, error)
- func (*FileSystem) OpenFile(name string, flag int, perm os.FileMode) (absfs.File, error)
- func (*FileSystem) ReadDir(name string) ([]fs.DirEntry, error)
- func (*FileSystem) ReadFile(name string) ([]byte, error)
- func (*FileSystem) Readlink(name string) (string, error)
- func (*FileSystem) Remove(name string) error
- func (*FileSystem) RemoveAll(name string) error
- func (*FileSystem) Rename(oldpath, newpath string) error
- func (*FileSystem) Stat(name string) (os.FileInfo, error)
- func (f *FileSystem) Sub(dir string) (fs.FS, error)
- func (*FileSystem) Symlink(oldname, newname string) error
- func (*FileSystem) TempDir() string
- func (*FileSystem) Truncate(name string, size int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem struct{}
func NewFs ¶
func NewFs() (*FileSystem, error)
func (*FileSystem) Chdir ¶
func (*FileSystem) Chdir(name string) error
func (*FileSystem) Chmod ¶
func (*FileSystem) Chmod(name string, mode os.FileMode) error
Chmod changes the mode of the named file to mode.
func (*FileSystem) Chown ¶
func (*FileSystem) Chown(name string, uid, gid int) error
Chown changes the owner and group ids of the named file
func (*FileSystem) Getwd ¶
func (*FileSystem) Getwd() (dir string, err error)
func (*FileSystem) Remove ¶
func (*FileSystem) Remove(name string) error
func (*FileSystem) RemoveAll ¶
func (*FileSystem) RemoveAll(name string) error
func (*FileSystem) Rename ¶
func (*FileSystem) Rename(oldpath, newpath string) error
func (*FileSystem) Symlink ¶
func (*FileSystem) Symlink(oldname, newname string) error
func (*FileSystem) TempDir ¶
func (*FileSystem) TempDir() string
Click to show internal directories.
Click to hide internal directories.