Documentation ¶
Index ¶
- type MockFs
- func (fs MockFs) Chmod(name string, mode os.FileMode) error
- func (fs MockFs) Create(name string) (gofs.File, error)
- func (fs MockFs) Lstat(path string) (os.FileInfo, error)
- func (fs MockFs) Mkdir(path string, perm os.FileMode) error
- func (fs MockFs) MkdirAll(path string, perm os.FileMode) error
- func (fs MockFs) Open(name string) (gofs.File, error)
- func (fs MockFs) OpenFile(name string, flag int, perm os.FileMode) (gofs.File, error)
- func (fs MockFs) ReadDir(path string) ([]os.FileInfo, error)
- func (fs MockFs) ReadFile(path string) ([]byte, error)
- func (fs MockFs) Readlink(path string) (string, error)
- func (fs MockFs) Remove(path string) error
- func (fs MockFs) RemoveAll(path string) error
- func (fs MockFs) Rename(old, new string) error
- func (fs MockFs) Stat(path string) (os.FileInfo, error)
- func (fs MockFs) Symlink(oldName, newName string) error
- func (fs MockFs) WriteFile(path string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFs ¶
type MockFs struct { CreateFunc func(name string) (gofs.File, error) RemoveFunc func(path string) error RemoveAllFunc func(path string) error StatFunc func(path string) (os.FileInfo, error) LstatFunc func(path string) (os.FileInfo, error) ReadFileFunc func(path string) ([]byte, error) ReadDirFunc func(dirname string) ([]os.FileInfo, error) MkdirFunc func(path string, perm os.FileMode) error MkdirAllFunc func(path string, perm os.FileMode) error OpenFunc func(path string) (gofs.File, error) WriteFileFunc func(path string, data []byte, perm os.FileMode) error RenameFunc func(old, new string) error OpenFileFunc func(name string, flag int, perm os.FileMode) (gofs.File, error) ChmodFunc func(name string, mode os.FileMode) error SymlinkFunc func(oldname, newname string) error ReadlinkFunc func(path string) (string, error) }
Click to show internal directories.
Click to hide internal directories.