Version: v0.0.2 Latest Latest

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

Go to latest
Published: Sep 3, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0



Package emptyfs provides a read-only filesystem that always remains empty. It is most useful as the root filesystem for a billy-router.



This section is empty.


This section is empty.


func New

func New() billy.Filesystem


type Filesystem

type Filesystem struct {
	// contains filtered or unexported fields

func (Filesystem) Chmod

func (Filesystem) Chmod(p string, mode os.FileMode) error

func (Filesystem) Chown

func (Filesystem) Chown(p string, uid, gid int) error

func (Filesystem) Chroot

func (f Filesystem) Chroot(p string) (billy.Filesystem, error)

func (Filesystem) Chtimes

func (Filesystem) Chtimes(p string, atime, mtime time.Time) error

func (Filesystem) Create

func (Filesystem) Create(p string) (billy.File, error)

func (Filesystem) Join

func (Filesystem) Join(elem ...string) string

func (Filesystem) Lchown

func (Filesystem) Lchown(p string, uid, gid int) error

func (Filesystem) Lstat

func (f Filesystem) Lstat(p string) (os.FileInfo, error)

func (Filesystem) MkdirAll

func (Filesystem) MkdirAll(p string, perm os.FileMode) error

func (Filesystem) Open

func (Filesystem) Open(p string) (billy.File, error)

func (Filesystem) OpenFile

func (Filesystem) OpenFile(p string, flag int, mode os.FileMode) (billy.File, error)

func (Filesystem) ReadDir

func (Filesystem) ReadDir(p string) ([]os.FileInfo, error)
func (Filesystem) Readlink(p string) (string, error)

func (Filesystem) Remove

func (Filesystem) Remove(p string) error

func (Filesystem) Rename

func (Filesystem) Rename(from, to string) error

func (Filesystem) Root

func (Filesystem) Root() string

func (Filesystem) Stat

func (f Filesystem) Stat(p string) (os.FileInfo, error)
func (Filesystem) Symlink(target, link string) error

func (Filesystem) TempFile

func (Filesystem) TempFile(dir, prefix string) (billy.File, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL