mountablefs

package
v0.0.0-...-607911e Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	fs.MutableFS
	// contains filtered or unexported fields
}

func New

func New(fsys fs.MutableFS) *FS

func (*FS) Chmod

func (host *FS) Chmod(name string, mode fs.FileMode) error

func (*FS) Chown

func (host *FS) Chown(name string, uid, gid int) error

func (*FS) Chtimes

func (host *FS) Chtimes(name string, atime time.Time, mtime time.Time) error

func (*FS) Create

func (host *FS) Create(name string) (fs.File, error)

func (*FS) Mkdir

func (host *FS) Mkdir(name string, perm fs.FileMode) error

func (*FS) MkdirAll

func (host *FS) MkdirAll(path string, perm fs.FileMode) error

func (*FS) Mount

func (host *FS) Mount(fsys fs.FS, dirPath string) error

func (*FS) Open

func (host *FS) Open(name string) (fs.File, error)

func (*FS) OpenFile

func (host *FS) OpenFile(name string, flag int, perm fs.FileMode) (fs.File, error)

func (*FS) Remove

func (host *FS) Remove(name string) error

func (*FS) RemoveAll

func (host *FS) RemoveAll(path string) error

func (*FS) Rename

func (host *FS) Rename(oldname, newname string) error

func (*FS) Unmount

func (host *FS) Unmount(path string) error

Jump to

Keyboard shortcuts

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