Documentation ¶
Index ¶
- func Create(fsys fs.FS, name string) (fs.File, error)
- func RemoveAll(fsys fs.FS, path string) error
- func Rename(fsys fs.FS, oldPath, newPath string) error
- func Symlink(fsys fs.FS, oldName, newName string) error
- func WriteFile(fsys fs.FS, filename string, data []byte, perm os.FileMode) error
- type CreatFS
- type InMemFS
- func (inmem *InMemFS) Content(name string) *bytes.Buffer
- func (inmem *InMemFS) Create(name string) (fs.File, error)
- func (inmem *InMemFS) Open(name string) (fs.File, error)
- func (*InMemFS) RemoveAll(path string) error
- func (inmem *InMemFS) Rename(oldPath, newPath string) error
- func (inmem *InMemFS) WriteFile(filename string, data []byte, perm os.FileMode) error
- type InMemFile
- type OsFS
- func (OsFS) Create(name string) (fs.File, error)
- func (OsFS) Open(name string) (fs.File, error)
- func (OsFS) RemoveAll(path string) error
- func (OsFS) Rename(oldPath, newPath string) error
- func (OsFS) Symlink(oldName, newName string) error
- func (OsFS) WriteFile(filename string, data []byte, perm os.FileMode) error
- type RemoveAllFS
- type RenameFS
- type SymlinkFS
- type WriteFileFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InMemFS ¶
InMemFS is an in-memory based filesystem t.
func NewInMemFS ¶
NewInMemFS returns a pointer to a new in-memory FS
type OsFS ¶
type OsFS struct{}
OsFS is an os based filesystem.
type RemoveAllFS ¶
RemoveAllFS is a filesystem that remove path and it's children that it may contain.
Click to show internal directories.
Click to hide internal directories.