msfsfiles

package
v0.0.0-...-84da98f Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2013 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

msfsfiles (in msfsfiles.go) implements the msfs fuse interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	DirList []fuse.Dirent
	Fs      *FS
}

Dir implements both Node and Handle for the root directory

func (Dir) Attr

func (Dir) Attr() fuse.Attr

func (*Dir) Lookup

func (msd *Dir) Lookup(name string, intr fs.Intr) (fs.Node, fuse.Error)

func (*Dir) Prepare

func (msd *Dir) Prepare(contents []fuse.Dirent, Fs *FS) fuse.Error

func (*Dir) ReadDir

func (msd *Dir) ReadDir(intr fs.Intr) ([]fuse.Dirent, fuse.Error)

type FS

type FS struct {
	Hi  *msfshashes.HSC
	Cas *msfscas.CASC

	Own *Dir
	// contains filtered or unexported fields
}

FS encapsulates whole-file-system features

func (*FS) Prepare

func (msfs *FS) Prepare(hi *msfshashes.HSC, cas *msfscas.CASC) fuse.Error

Prepare() sets up the file system for use.

func (*FS) Root

func (msfs *FS) Root() (fs.Node, fuse.Error)

type File

type File struct {
	Inode uint64
	Name  string
	Msd   *Dir
}

File implements both Node and Handle for the hello file

func (File) Attr

func (File) Attr() fuse.Attr

func (*File) Prepare

func (fi *File) Prepare(i uint64, n string, Msd *Dir) fuse.Error

func (File) ReadAll

func (fi File) ReadAll(intr fs.Intr) ([]byte, fuse.Error)

Jump to

Keyboard shortcuts

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