fs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Init

func Init()

func Mount

func Mount(target string, fs afero.Fs) error

func NewFile

func NewFile(r io.Reader, w io.Writer, c io.Closer) io.ReadWriteCloser

Types

type Inode

type Inode struct {
	File io.ReadWriteCloser
	Fd   int
	// contains filtered or unexported fields
}

func AllocFileNode

func AllocFileNode(r io.ReadWriteCloser) (int, *Inode)

func AllocInode

func AllocInode() (int, *Inode)

func GetInode

func GetInode(fd int) (*Inode, error)

func (*Inode) Release

func (i *Inode) Release()

type Ioctler

type Ioctler interface {
	Ioctl(op, arg uintptr) error
}

Directories

Path Synopsis
stripprefix strip the leading prefix of file name on access fs methods if file name is not an abs path, stripprefix do nothing
stripprefix strip the leading prefix of file name on access fs methods if file name is not an abs path, stripprefix do nothing

Jump to

Keyboard shortcuts

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