Documentation ¶
Overview ¶
Package emptyfs provides a read-only filesystem that always remains empty. It is most useful as the root filesystem for a billy-router.
Index ¶
- func New() billy.Filesystem
- type Filesystem
- func (Filesystem) Chmod(p string, mode os.FileMode) error
- func (Filesystem) Chown(p string, uid, gid int) error
- func (f Filesystem) Chroot(p string) (billy.Filesystem, error)
- func (Filesystem) Chtimes(p string, atime, mtime time.Time) error
- func (Filesystem) Create(p string) (billy.File, error)
- func (Filesystem) Join(elem ...string) string
- func (Filesystem) Lchown(p string, uid, gid int) error
- func (f Filesystem) Lstat(p string) (os.FileInfo, error)
- func (Filesystem) MkdirAll(p string, perm os.FileMode) error
- func (Filesystem) Open(p string) (billy.File, error)
- func (Filesystem) OpenFile(p string, flag int, mode os.FileMode) (billy.File, error)
- func (Filesystem) ReadDir(p string) ([]os.FileInfo, error)
- func (Filesystem) Readlink(p string) (string, error)
- func (Filesystem) Remove(p string) error
- func (Filesystem) Rename(from, to string) error
- func (Filesystem) Root() string
- func (f Filesystem) Stat(p string) (os.FileInfo, error)
- func (Filesystem) Symlink(target, link string) error
- func (Filesystem) TempFile(dir, prefix string) (billy.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
func (Filesystem) Chroot ¶
func (f Filesystem) Chroot(p string) (billy.Filesystem, error)
func (Filesystem) Create ¶
func (Filesystem) Create(p string) (billy.File, error)
func (Filesystem) Join ¶
func (Filesystem) Join(elem ...string) string
func (Filesystem) Open ¶
func (Filesystem) Open(p string) (billy.File, 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) Symlink ¶
func (Filesystem) Symlink(target, link string) error
func (Filesystem) TempFile ¶
func (Filesystem) TempFile(dir, prefix string) (billy.File, error)
Click to show internal directories.
Click to hide internal directories.