memfs

package
v0.0.0-...-f127d36 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDir

func NewDir(mux nfs.ServeMux, nodes map[string]Node) *dir

func NewFS

func NewFS(dir *dir) *fs

func NewFile

func NewFile(content string) *file

Types

type Mount

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

func NewMount

func NewMount(root []byte) *Mount

func (*Mount) Mount

func (m *Mount) Mount(args *mount.MountArgs, res *mount.MountRes) error

func (*Mount) Null

func (m *Mount) Null(args *mount.NullArgs, res *mount.NullRes) error

type Node

type Node interface {
	ID() []byte
	Attr() nfs.Fattr3
}

Jump to

Keyboard shortcuts

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