mountfs

package
v0.0.0-...-9a67539 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 7 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.FS
	// contains filtered or unexported fields
}

func New

func New(fsys fs.FS, root string, mount fs.FS, opts ...Modifier) *FS

mount.FS assumes the mount takes over at its mount root, ie you cant access the base fsys. Using Union() modifier then only does unions on shared paths.

func (*FS) Open

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

func (*FS) OpenFile

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

func (*FS) Stat

func (m *FS) Stat(name string) (fi fs.FileInfo, err error)

type Modifier

type Modifier func(fs.FS, string, fs.FS) fs.FS

func ReadOnly

func ReadOnly() Modifier

func Union

func Union() Modifier

Jump to

Keyboard shortcuts

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