Skip to main content
Version: v1

ObjectStoragePartition Class

Returns a new IChannelStorageService that resolves the given path as root.

Signature​

export declare class ObjectStoragePartition implements IChannelStorageService

Implements: IChannelStorageService

Constructors​

ConstructorDescription
(constructor)(storage, path)Constructs a new instance of the ObjectStoragePartition class

Methods​

MethodReturn TypeDescription
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​

ParameterTypeDescription
storageIChannelStorageService
pathstring

Method Details​

contains​

Signature​

contains(path: string): Promise<boolean>;

Parameters​

ParameterTypeDescription
pathstring

Returns​

Return type: Promise<boolean>

list​

Signature​

list(path: string): Promise<string[]>;

Parameters​

ParameterTypeDescription
pathstring

Returns​

Return type: Promise<string[]>

readBlob​

Signature​

readBlob(path: string): Promise<ArrayBufferLike>;

Parameters​

ParameterTypeDescription
pathstring

Returns​

Return type: Promise<ArrayBufferLike>