boardfs

package
v0.0.0-...-a4e0426 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootNode

func NewRootNode() nodefs.Node

Types

type BoardNode

type BoardNode struct {
	*board.Board
}

func (*BoardNode) List

func (bn *BoardNode) List() (ret []string)

func (*BoardNode) NodeFromName

func (bn *BoardNode) NodeFromName(name string) (nodefs.Node, error)

type DirNode

type DirNode struct {
	nodefs.Node
	NodeMaker
	// contains filtered or unexported fields
}

func (*DirNode) GetAttr

func (dn *DirNode) GetAttr(
	out *fuse.Attr,
	file nodefs.File,
	context *fuse.Context) (code fuse.Status)

func (*DirNode) Lookup

func (dn *DirNode) Lookup(
	out *fuse.Attr,
	name string,
	context *fuse.Context) (*nodefs.Inode, fuse.Status)

func (*DirNode) Mkdir

func (dn *DirNode) Mkdir(
	name string,
	mode uint32,
	context *fuse.Context) (*nodefs.Inode, fuse.Status)

func (*DirNode) OpenDir

func (dn *DirNode) OpenDir(
	context *fuse.Context) (ret []fuse.DirEntry, code fuse.Status)

type NodeMaker

type NodeMaker interface {
	NodeFromName(name string) (nodefs.Node, error)
	List() []string
}

type RootNode

type RootNode struct {
}

func (*RootNode) List

func (rn *RootNode) List() []string

func (*RootNode) NodeFromName

func (rn *RootNode) NodeFromName(name string) (nodefs.Node, error)

type SiteNode

type SiteNode struct {
	*board.Site
}

func (*SiteNode) NodeFromName

func (sn *SiteNode) NodeFromName(name string) (nodefs.Node, error)

type StrNode

type StrNode struct {
	nodefs.Node
	// contains filtered or unexported fields
}

func (*StrNode) GetAttr

func (sn *StrNode) GetAttr(
	out *fuse.Attr,
	file nodefs.File,
	context *fuse.Context) (code fuse.Status)

func (*StrNode) Open

func (sn *StrNode) Open(flags uint32, context *fuse.Context) (nodefs.File, fuse.Status)

type ThreadNode

type ThreadNode struct {
	nodefs.Node
	// contains filtered or unexported fields
}

func (*ThreadNode) GetAttr

func (tn *ThreadNode) GetAttr(
	out *fuse.Attr,
	file nodefs.File,
	context *fuse.Context) (code fuse.Status)

func (*ThreadNode) Lookup

func (tn *ThreadNode) Lookup(
	out *fuse.Attr,
	name string,
	context *fuse.Context) (*nodefs.Inode, fuse.Status)

func (*ThreadNode) OpenDir

func (tn *ThreadNode) OpenDir(
	context *fuse.Context) (ret []fuse.DirEntry, st fuse.Status)

XXX be smarter about dispatch later

Jump to

Keyboard shortcuts

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