anchor

package
v0.0.0-...-fd2add7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Server     = "server"
	Chan       = "chan"
	Proc       = "proc"
	Docker     = "docker"
	Nameserver = "dns"
	OnJoin     = "@join"
	OnLeave    = "@leave"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Anchor

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

func (Anchor) Busy

func (a Anchor) Busy() bool

func (Anchor) Get

func (a Anchor) Get() interface{}

func (Anchor) Path

func (a Anchor) Path() string

func (Anchor) Set

func (a Anchor) Set(v interface{})

func (Anchor) TxLock

func (a Anchor) TxLock()

func (Anchor) TxUnlock

func (a Anchor) TxUnlock()

func (Anchor) View

func (a Anchor) View() (r map[string]*Anchor)

func (Anchor) Walk

func (a Anchor) Walk(walk []string) *Anchor

type Element

type Element interface {
	Scrub()
	X() circuit.X
}

type Genus

type Genus interface {
	NewArrivals() pubsub.Consumer
	NewDepartures() pubsub.Consumer
}

type Terminal

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

Terminal presents a facade to *Anchor with added element manipulation methods

func NewTerm

func NewTerm(name string, genus Genus) (*Terminal, circuit.PermX)

NewTerm create the root node of a new anchor file system.

func (*Terminal) Attach

func (t *Terminal) Attach(kind string, elm Element)

func (*Terminal) Get

func (t *Terminal) Get() (string, Element)

func (*Terminal) Make

func (t *Terminal) Make(kind string, arg interface{}) (elem Element, err error)

func (*Terminal) Path

func (t *Terminal) Path() string

func (*Terminal) Scrub

func (t *Terminal) Scrub()

func (*Terminal) View

func (t *Terminal) View() map[string]*Terminal

func (*Terminal) Walk

func (t *Terminal) Walk(walk []string) *Terminal

type XTerminal

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

func (XTerminal) Get

func (x XTerminal) Get() (string, circuit.X)

func (XTerminal) Make

func (x XTerminal) Make(kind string, arg interface{}) (xelm circuit.X, err error)

func (XTerminal) Path

func (x XTerminal) Path() string

func (XTerminal) Scrub

func (x XTerminal) Scrub()

func (XTerminal) View

func (x XTerminal) View() map[string]circuit.X

func (XTerminal) Walk

func (x XTerminal) Walk(walk []string) circuit.X

type YTerminal

type YTerminal struct {
	X circuit.X
}

YTerminal…

func (YTerminal) Get

func (y YTerminal) Get() (kind string, yelm interface{})

func (YTerminal) Make

func (y YTerminal) Make(kind string, arg interface{}) (yelm interface{}, err error)

func (YTerminal) Path

func (y YTerminal) Path() string

func (YTerminal) Scrub

func (y YTerminal) Scrub()

func (YTerminal) View

func (y YTerminal) View() map[string]YTerminal

func (YTerminal) Walk

func (y YTerminal) Walk(walk []string) YTerminal

Jump to

Keyboard shortcuts

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