server

package
v0.0.0-...-42c81d0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2015 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotMountedError = errors.New("not currently mounted")

Functions

This section is empty.

Types

type App

type App struct {
	DataDir string

	DB *bolt.DB
	// contains filtered or unexported fields
}

func New

func New(dataDir string) (app *App, err error)

func (*App) Close

func (app *App) Close()

func (*App) Mount

func (app *App) Mount(volumeName string, mountpoint string) (*MountInfo, error)

Mount makes the contents of the volume visible at the given mountpoint. If Mount returns with a nil error, the mount has occurred.

func (*App) WaitForUnmount

func (app *App) WaitForUnmount(volumeID *fs.VolumeID) error

type MountInfo

type MountInfo struct {
	VolumeID fs.VolumeID
}

Jump to

Keyboard shortcuts

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