Documentation
¶
Index ¶
- func NewWritable() writableFs
- type NullDevice
- func (b NullDevice) Open(_ string) (fs.File, error)
- func (b NullDevice) OpenFile(name string, flag int, perm fs.FileMode) (WritableFile, error)
- func (b NullDevice) Read(_ []byte) (int, error)
- func (b NullDevice) ReadDir(_ string) ([]fs.DirEntry, error)
- func (b NullDevice) ReadFile(_ string) ([]byte, error)
- func (b NullDevice) Remove(_ string) error
- func (b NullDevice) Stat(_ string) (fs.FileInfo, error)
- func (b NullDevice) WriteFile(_ string, _ []byte, _ fs.FileMode) error
- type RealFS
- type TestFS
- func (tw TestFS) Open(name string) (fs.File, error)
- func (tw TestFS) OpenFile(name string, _ int, _ fs.FileMode) (WritableFile, error)
- func (tw TestFS) ReadDir(name string) ([]fs.DirEntry, error)
- func (tw TestFS) ReadFile(name string) ([]byte, error)
- func (tw TestFS) Remove(name string) error
- func (tw TestFS) Stat(name string) (fs.FileInfo, error)
- func (tw TestFS) WriteFile(name string, data []byte, mode fs.FileMode) error
- type TestFSFile
- func (_ *TestFSFile) Close() error
- func (f *TestFSFile) IsDir() bool
- func (f *TestFSFile) Name() string
- func (f *TestFSFile) Read(p []byte) (int, error)
- func (f *TestFSFile) Seek(offest int64, whence int) (int64, error)
- func (f *TestFSFile) Stat() (fs.FileInfo, error)
- func (f *TestFSFile) Write(b []byte) (int, error)
- type WritableFile
- type WritableFs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWritable ¶ added in v0.0.3
func NewWritable() writableFs
Types ¶
type NullDevice ¶ added in v0.1.0
func (NullDevice) OpenFile ¶ added in v0.1.0
func (b NullDevice) OpenFile(name string, flag int, perm fs.FileMode) (WritableFile, error)
func (NullDevice) ReadDir ¶ added in v0.1.0
func (b NullDevice) ReadDir(_ string) ([]fs.DirEntry, error)
func (NullDevice) Remove ¶ added in v0.1.0
func (b NullDevice) Remove(_ string) error
type TestFS ¶ added in v0.1.0
type TestFS struct {
// contains filtered or unexported fields
}
type TestFSFile ¶ added in v0.1.0
func (*TestFSFile) Close ¶ added in v0.1.0
func (_ *TestFSFile) Close() error
func (*TestFSFile) IsDir ¶ added in v0.1.0
func (f *TestFSFile) IsDir() bool
func (*TestFSFile) Name ¶ added in v0.1.0
func (f *TestFSFile) Name() string
type WritableFile ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.