Static
createStatic
fromCIDLoads an existing file system from a CID.
Create a new private node and mount it.
Optional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsUnmount a private node from the file system.
Optional
listOptions: { Optional
listOptions: { Optional
options: { Optional
length?: numberOptional
offset?: numberOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsGet an async iterator which buffers a tuple of an event name and data each time an event is emitted.
Call return()
on the iterator to remove the subscription.
In the same way as for events
, you can subscribe by using the for await
statement.
Get an async iterator which buffers data each time an event is emitted.
Call return()
on the iterator to remove the subscription.
Remove an onAny
subscription.
Subscribe to one or more events.
Using the same listener multiple times for the same event will result in only one method call per emitted event.
An unsubscribe method.
Subscribe to be notified about any event.
A method to unsubscribe.
Subscribe to one or more events only once. It will be unsubscribed after the first event.
The promise of event data when eventName
is emitted. This promise is extended with an off
method.
Private
#infusedOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsOptional
mutationOptions: MutationOptionsPrivate
#publishPrivate
#transactionPrivate
Readonly
#blockstorePrivate
Readonly
#debouncedRest
...args: { Private
Readonly
#eventPrivate
Readonly
#onPrivate
#privatePrivate
Readonly
#rngPrivate
#rootCheck if an exchange key was already registered.
Load a shared item.
NOTE: A share can only be received if the exchange key was registered and the receiver is in possession of the associated private key.
The data root CID from the sharer
A RSA-OAEP-256 key pair
Optional overrides
Optional
shareSpecify what shareId to use, otherwise this'll load the last share that was made to the given exchange key.
Optional
sharerSpecify what blockstore to use to load the sharer's file system.
Optional
sharerSpecify what root tree class was used for the sharer's file system.
Register an exchange key.
A name for the key (using an existing name overrides the old key)
A RSA-OAEP-256 public key in the form of a CryptoKey
or its modulus bytes
Mutation options
Share a private file or directory.
NOTE: A share can only be received if the exchange key was registered and the receiver is in possession of the associated private key.
Path to the private file or directory to share (with 'private' prefix)
Data root CID of the receiver
Optional overrides
Optional
mutationMutation options
Optional
receiverSpecify what blockstore to use to load the receiver's file system
Optional
receiverSpecify what root tree class was used for the receiver's file system
Generated using TypeDoc
Creates a file system with an empty public tree & an empty private tree at the root.