Class: JsHttpDrive

JsHttpDrive()

SalmonDrive implementation for an HTTP-based drive. This provides a virtual drive implementation that you can access read-only encrypted files remotely. Use static methods open() or create() to create an instance.

Constructor

new JsHttpDrive()

Private constructor, use open() instead.
Source:

Classes

JsHttpDrive

Methods

getFile(file)

Parameters:
Name Type Description
file The real file.
Source:
Returns:
The encrypted file.

getPrivateDir() → {IRealFile}

Get a private dir for sharing files with external applications.
Source:
Throws:
Exception
Returns:
The private dir
Type
IRealFile

onUnlockError()

When authorization fails.
Source:

onUnlockSuccess()

When authorization succeed.
Source:

(async, static) open(dir, password, sequencer) → {Promise.<SalmonDrive>}

Helper method that opens and initializes a JsDrive
Parameters:
Name Type Default Description
dir IRealFile The real directory that contains the drive.
password string Text password to use with this drive.
sequencer ISalmonSequencer null Optional nonce sequencer that will be used for importing files.
Source:
Returns:
The drive.
Type
Promise.<SalmonDrive>