Documentation
¶
Index ¶
- Variables
- type App
- func (app *App) Close()
- func (app *App) DialPeer(pub *peer.PublicKey) (PeerClient, error)
- func (app *App) GetTLSConfig() (*tls.Config, error)
- func (app *App) Mount(volumeName string, mountpoint string) (*MountInfo, error)
- func (app *App) OpenKVForPeer(pub *peer.PublicKey) (kv.KV, error)
- func (app *App) ValidateKV(backend string) error
- func (app *App) WaitForUnmount(volumeID *db.VolumeID) error
- type CryptoKeys
- type MountInfo
- type PeerClient
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 (*App) Mount ¶
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) ValidateKV ¶
type CryptoKeys ¶
type CryptoKeys struct {
Sign struct {
Pub *[ed25519.PublicKeySize]byte
Priv *[ed25519.PrivateKeySize]byte
}
Box struct {
Pub *[32]byte
Priv *[32]byte
}
}
type PeerClient ¶
type PeerClient interface {
wirepeer.PeerClient
io.Closer
}
Click to show internal directories.
Click to hide internal directories.