ObjectStoragePartition Class
Returns a new IChannelStorageService that resolves the given path
as root.
Signature
export declare class ObjectStoragePartition implements IChannelStorageService
Implements: IChannelStorageService
Constructors
Constructor | Description |
---|---|
(constructor)(storage, path) | Constructs a new instance of the ObjectStoragePartition class |
Methods
Method | Return Type | Description |
---|---|---|
contains(path) | Promise<boolean> | |
list(path) | Promise<string[]> | |
readBlob(path) | Promise<ArrayBufferLike> |
Constructor Details
(constructor)
Constructs a new instance of the ObjectStoragePartition
class
Signature
constructor(storage: IChannelStorageService, path: string);
Parameters
Parameter | Type | Description |
---|---|---|
storage | IChannelStorageService | |
path | string |
Method Details
contains
Signature
contains(path: string): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string |
Returns
Return type: Promise<boolean>
list
Signature
list(path: string): Promise<string[]>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string |
Returns
Return type: Promise<string[]>
readBlob
Signature
readBlob(path: string): Promise<ArrayBufferLike>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string |
Returns
Return type: Promise<ArrayBufferLike>