Documentation ¶
Index ¶
- type AferoAdapter
- func (aa AferoAdapter) Chmod(name string, mode os.FileMode) error
- func (aa AferoAdapter) Chown(name string, uid, gid int) error
- func (aa AferoAdapter) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (aa AferoAdapter) Create(name string) (afero.File, error)
- func (aa AferoAdapter) Mkdir(name string, perm os.FileMode) error
- func (aa AferoAdapter) MkdirAll(path string, perm os.FileMode) error
- func (aa AferoAdapter) Name() string
- func (aa AferoAdapter) Open(name string) (afero.File, error)
- func (aa AferoAdapter) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (aa AferoAdapter) Remove(name string) error
- func (aa AferoAdapter) RemoveAll(path string) error
- func (aa AferoAdapter) Rename(oldname, newname string) error
- func (aa AferoAdapter) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AferoAdapter ¶
AferoAdapter patches afero.MemMapFS to accept paths & names without a leading '/', i.e. to behave like the fs.FS api.
func (AferoAdapter) Name ¶
func (aa AferoAdapter) Name() string
func (AferoAdapter) Remove ¶
func (aa AferoAdapter) Remove(name string) error
func (AferoAdapter) RemoveAll ¶
func (aa AferoAdapter) RemoveAll(path string) error
func (AferoAdapter) Rename ¶
func (aa AferoAdapter) Rename(oldname, newname string) error
Click to show internal directories.
Click to hide internal directories.