afero2

package
v3.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AferoAdapter

type AferoAdapter struct {
	Inner afero.Fs
}

AferoAdapter patches afero.MemMapFS to accept paths & names without a leading '/', i.e. to behave like the fs.FS api.

func (AferoAdapter) Chmod

func (aa AferoAdapter) Chmod(name string, mode os.FileMode) error

func (AferoAdapter) Chown

func (aa AferoAdapter) Chown(name string, uid, gid int) error

func (AferoAdapter) Chtimes

func (aa AferoAdapter) Chtimes(name string, atime time.Time, mtime time.Time) error

func (AferoAdapter) Create

func (aa AferoAdapter) Create(name string) (afero.File, error)

func (AferoAdapter) Mkdir

func (aa AferoAdapter) Mkdir(name string, perm os.FileMode) error

func (AferoAdapter) MkdirAll

func (aa AferoAdapter) MkdirAll(path string, perm os.FileMode) error

func (AferoAdapter) Name

func (aa AferoAdapter) Name() string

func (AferoAdapter) Open

func (aa AferoAdapter) Open(name string) (afero.File, error)

func (AferoAdapter) OpenFile

func (aa AferoAdapter) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

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

func (AferoAdapter) Stat

func (aa AferoAdapter) Stat(name string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL