namespacefs

package
v0.0.0-...-4749bbe Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFile

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

move into fs

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

Work in progress FS to implement Plan9-style binding. Right now works more like a mountable FS focusing on merging mounts into dirs

func New

func New() *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(name 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) 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