Documentation ¶
Index ¶
- Variables
- type App
- func (app *App) Close()
- func (app *App) Debug(msg interface{})
- func (app *App) DialPeer(pub *peer.PublicKey) (PeerClient, error)
- func (app *App) GetTLSConfig() (*tls.Config, error)
- func (app *App) GetVolume(id *db.VolumeID) (*VolumeRef, error)
- func (app *App) GetVolumeByName(name string) (*VolumeRef, error)
- func (app *App) OpenKV(tx *db.Tx, storage *db.VolumeStorage) (kv.KV, error)
- func (app *App) OpenKVForPeer(pub *peer.PublicKey) (kv.KV, error)
- func (app *App) ValidateKV(backend string) error
- type AppOption
- type CryptoKeys
- type PeerClient
- type VolumeRef
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) 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 }
type VolumeRef ¶
type VolumeRef struct {
// contains filtered or unexported fields
}
func (*VolumeRef) FS ¶
FS returns the underlying filesystem implementation.
Caller must keep a reference to VolumeRef for the duration
func (*VolumeRef) 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 (*VolumeRef) Protocol ¶
Protocol returns the underlying FUSE protocol version.
Caller must keep a reference to VolumeRef for the duration
func (*VolumeRef) WaitForUnmount ¶
Click to show internal directories.
Click to hide internal directories.