filesystem

package
v0.0.0-...-2aee492 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2016 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Unattachable = errors.New("unattachable")

Functions

func Attach

func Attach(m Mounts, to node.Node) error

func DefaultMountPoint

func DefaultMountPoint(f *FS) error

func DefaultRootFn

func DefaultRootFn(f *FS) error

func DefaultXandle

func DefaultXandle(f *FS) error

Types

type Config

type Config interface {
	Order() int
	Configure(*FS) error
}

func DefaultConfig

func DefaultConfig(fn ConfigFn) Config

func MountPoint

func MountPoint(path string) Config

func NewConfig

func NewConfig(order int, fn ConfigFn) Config

type ConfigFn

type ConfigFn func(*FS) error

type Configuration

type Configuration interface {
	Add(...Config)
	AddFn(...ConfigFn)
	Configure() error
	Configured() bool
}

type FS

type FS struct {
	*log.Logger

	Configuration

	xandle.Xandle
	// contains filtered or unexported fields
}

Holds the primary file system data.

func New

func New(c ...Config) *FS

New returns an instance of FS with the provided Config.

func (*FS) Destroy

func (f *FS) Destroy()

Root satisfies the the fuse/fs FS interface.

func (*FS) Mount

func (f *FS) Mount() error

func (*FS) NewMounts

func (f *FS) NewMounts(k, at string, b node.Node)

func (*FS) Root

func (f *FS) Root() (fs.Node, error)

Root satisfies the the fuse/fs FS interface.

type Mounts

type Mounts interface {
	Kind() string
	At() string
	Block() node.Node
}

Jump to

Keyboard shortcuts

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