IChannelStorageService Interface
Storage services to read the objects at a given path.
To use, import via @fluidframework/datastore-definitions/legacy
.
For more information about our API support guarantees, see here.
Signature
export interface IChannelStorageService
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
contains(path) | Alpha |
Promise<boolean> | Determines if there is an object contained at the given path. |
list(path) | Alpha |
Promise<string[]> | Lists the blobs that exist at a specific path. |
readBlob(path) | Alpha |
Promise<ArrayBufferLike> | Reads the object contained at the given path. Returns a buffer representation for the object. |
Method Details
contains
Determines if there is an object contained at the given path.
To use, import via @fluidframework/datastore-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
contains(path: string): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string |
Returns
Return type: Promise<boolean>
list
Lists the blobs that exist at a specific path.
To use, import via @fluidframework/datastore-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
list(path: string): Promise<string[]>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string |
Returns
Return type: Promise<string[]>
readBlob
Reads the object contained at the given path. Returns a buffer representation for the object.
To use, import via @fluidframework/datastore-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
readBlob(path: string): Promise<ArrayBufferLike>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string |
Returns
Return type: Promise<ArrayBufferLike>