fs

package
Version: v0.0.0-...-1c33fca Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	fs.Node

	New(NodeType, string) Node

	MetaData() NodeMetaData
	Name() string
	Path(...string) string
	IsDir() bool
	IsFile() bool
	Content() []byte
	Parent(...Node) Node
	Children() Nodes

	Delete() bool

	Entry() fuse.Dirent
}

type NodeMetaData

type NodeMetaData interface {
	Get(string) (interface{}, bool)
	GetString(string) string
	GetBool(string) bool
	GetBytes(string) []byte
	Set(string, interface{})
	Iter() map[string]interface{}
}

type NodeType

type NodeType int
const (
	FileNode NodeType = iota
	DirNode
	TempFileNode
)

type Nodes

type Nodes interface {
	Iter() []Node
	Directories() []Node
	Files() []Node
	Get(string) (Node, bool)
	Delete(string)
	Set(string, Node)

	Exists(string) bool
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL