Documentation
¶
Index ¶
- Variables
- type CreateFS
- type File
- type OSFS
- func (osfs *OSFS) Open(name string) (stdlib_fs.File, error)
- func (osfs *OSFS) OpenFile(name string, flag int, perm os.FileMode) (File, error)
- func (osfs *OSFS) ReadDir(name string) ([]stdlib_fs.DirEntry, error)
- func (osfs *OSFS) Rel(name string) (string, error)
- func (osfs *OSFS) Remove(name string) error
- func (osfs *OSFS) Rename(oldpath, newpath string) error
- func (osfs *OSFS) Stat(name string) (stdlib_fs.FileInfo, error)
- type OpenFileFS
- type RemoveFS
- type RenameFS
Constants ¶
This section is empty.
Variables ¶
View Source
var NotImplementedError error = fmt.Errorf("requested functionality is not implemented")
Functions ¶
This section is empty.
Types ¶
type CreateFS ¶
CreateFS is the interface that wraps the Create method. It should behave similarly to the os.Create function.
type File ¶
A File interface. It is acceptable for any implementation which doesn't implement a given method to simply return NotImplementedError for that method.
type OSFS ¶
type OSFS struct {
// contains filtered or unexported fields
}
An implemententation of `ReadWriteFS` to interact with a real filesystem on the present operating system.
type OpenFileFS ¶
type OpenFileFS interface { stdlib_fs.FS OpenFile(name string, flag int, perm os.FileMode) (File, error) }
OpenFileFS is the interface that wraps the OpenFile method. It need not be able to implement all flags that os.OpenFile supports.
Click to show internal directories.
Click to hide internal directories.