namespace

package
v0.0.0-...-5596d3b Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Export

type Export struct {
	mixin.FS
	// contains filtered or unexported fields
}

func NewExport

func NewExport(ns *Namespace) *Export

func (*Export) Create

func (fs *Export) Create(fc *plan9.Fcall, ctx *vfs.Context) *plan9.Fcall

func (*Export) Open

func (fs *Export) Open(fc *plan9.Fcall, ctx *vfs.Context) *plan9.Fcall

func (*Export) Read

func (fs *Export) Read(fc *plan9.Fcall, ctx *vfs.Context) *plan9.Fcall

func (*Export) Walk

func (fs *Export) Walk(fc *plan9.Fcall, ctx *vfs.Context) *plan9.Fcall

func (*Export) Write

func (fs *Export) Write(fc *plan9.Fcall, ctx *vfs.Context) *plan9.Fcall

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

func (*Namespace) Mount

func (ns *Namespace) Mount(name string, parent string, fid *client.Fid) error

Mount changes this namespace to expose fid (and it's tree) under parent/name.

func (*Namespace) Walk

func (ns *Namespace) Walk(p string) (*client.Fid, error)

Walk scans the mount tree for the path p and perform a walk on the correct fid.

When walk reaches a node without a valid child, then it will start to perform walk operations on the last valid fid.

type Tree

type Tree struct {
	Name   string
	Childs []*Tree
	Fid    *client.Fid
}

func (*Tree) AddChild

func (t *Tree) AddChild(n string) *Tree

func (*Tree) FindChild

func (t *Tree) FindChild(n string) *Tree

Jump to

Keyboard shortcuts

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