server

package
v0.0.0-...-cffa139 Latest Latest
Warning

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

Go to latest
Published: May 29, 2015 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type App

type App struct {
	DataDir string

	DB *db.DB

	Keys *CryptoKeys
	// contains filtered or unexported fields
}

func New

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

func (*App) Close

func (app *App) Close()

func (*App) DialPeer

func (app *App) DialPeer(pub *peer.PublicKey) (PeerClient, error)

func (*App) GetTLSConfig

func (app *App) GetTLSConfig() (*tls.Config, error)

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) OpenKVForPeer

func (app *App) OpenKVForPeer(pub *peer.PublicKey) (kv.KV, error)

func (*App) ValidateKV

func (app *App) ValidateKV(backend string) error

func (*App) WaitForUnmount

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

type CryptoKeys

type CryptoKeys struct {
	Sign struct {
		Pub  *[ed25519.PublicKeySize]byte
		Priv *[ed25519.PrivateKeySize]byte
	}
	Box struct {
		Pub  *[32]byte
		Priv *[32]byte
	}
}

type MountInfo

type MountInfo struct {
	VolumeID db.VolumeID
}

type PeerClient

type PeerClient interface {
	wirepeer.PeerClient
	io.Closer
}

Directories

Path Synopsis
wire
Package wire is a generated protocol buffer package.
Package wire is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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