Documentation ¶
Index ¶
- Constants
- func IsViewPath(fn string) bool
- type Blob
- type Dirent
- type FS
- func (fs *FS) Closest(path string, f func(nd *Node) bool) *Node
- func (fs *FS) Invalidate(path string)
- func (fs *FS) IsDir(path string) bool
- func (fs *FS) IsFile(path string) bool
- func (fs *FS) Memo(path string) (*Node, *memo.M, error)
- func (fs *FS) PeekBlob(path string) *Blob
- func (fs *FS) PeekMemo(path string, k memo.K) memo.V
- func (fs *FS) ReadBlob(path string) *Blob
- func (fs *FS) ReadDir(path string) ([]os.FileInfo, error)
- func (fs *FS) ReadMemo(path string, k memo.K, new func() memo.K) memo.V
- func (fs *FS) Scan(path string, so ScanOptions)
- func (fs *FS) Stat(path string) (*Node, os.FileInfo, error)
- type FileInfo
- type Node
- func (nd *Node) Branches(f func(nd *Node))
- func (nd *Node) Children() *NodeList
- func (nd *Node) Closest(f func(nd *Node) bool) *Node
- func (nd *Node) Invalidate()
- func (nd *Node) IsBranch() bool
- func (nd *Node) IsDescendant(ancestor *Node) bool
- func (nd *Node) IsDir() bool
- func (nd *Node) IsFile() bool
- func (nd *Node) IsLeaf() bool
- func (nd *Node) IsRoot() bool
- func (nd *Node) Locate(name string) (*Node, os.FileInfo, error)
- func (nd *Node) Ls() *NodeList
- func (nd *Node) Memo() (*memo.M, error)
- func (nd *Node) Name() string
- func (nd *Node) Parent() *Node
- func (nd *Node) Path() string
- func (nd *Node) Peek(path string) *Node
- func (nd *Node) PeekBlob() *Blob
- func (nd *Node) PeekMemo(k memo.K) memo.V
- func (nd *Node) Poke(path string) *Node
- func (nd *Node) Print(w io.Writer)
- func (nd *Node) PrintWithFilter(w io.Writer, filter func(*Node) string)
- func (nd *Node) ReadBlob() *Blob
- func (nd *Node) ReadDir() ([]os.FileInfo, error)
- func (nd *Node) ReadMemo(k memo.K, new func() memo.V) memo.V
- func (nd *Node) Stat() (os.FileInfo, error)
- func (nd *Node) String() string
- type NodeList
- func (n *NodeList) Add(nd *Node) *NodeList
- func (n *NodeList) Copy() *NodeList
- func (n *NodeList) Filter(f func(nd *Node) bool) *NodeList
- func (n *NodeList) Find(name string) (index int, c *Node)
- func (n *NodeList) Index(nd *Node) (index int)
- func (n *NodeList) Len() int
- func (n *NodeList) Node(name string) *Node
- func (n *NodeList) Nodes() []*Node
- func (n *NodeList) Some(f func(nd *Node) bool) bool
- func (n *NodeList) Sorted() *NodeList
- type ScanOptions
Constants ¶
View Source
const (
ViewNamePrefix = "view@"
)
Variables ¶
This section is empty.
Functions ¶
func IsViewPath ¶
Types ¶
type Blob ¶
type Blob struct { Limit int // contains filtered or unexported fields }
func (*Blob) ReadCloser ¶
func (b *Blob) ReadCloser() io.ReadCloser
type FS ¶
type FS struct{ Node }
func (*FS) Invalidate ¶
func (*FS) Scan ¶
func (fs *FS) Scan(path string, so ScanOptions)
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) Invalidate ¶
func (nd *Node) Invalidate()
func (*Node) IsDescendant ¶
func (*Node) PrintWithFilter ¶
Click to show internal directories.
Click to hide internal directories.