StorageServiceClientI
Api Code Documentation / Exports / service/Client_storage_service.h / StorageServiceClientI
service/Client_storage_service.h.StorageServiceClientI
Implemented by
Table of contents
Methods
Methods
deleteObject
▸ deleteObject(id
, secret
): Promise
<Type
<DeleteResponse
>>
Parameters
Name | Type |
---|---|
id | string |
secret | string |
Returns
Promise
<Type
<DeleteResponse
>>
Defined in
src/service/Client_storage_service.h.ts:51
downloadObject
▸ downloadObject(id
, secret
): Promise
<Type
<StorageObject
>>
Download an object using the matching secret
Parameters
Name | Type | Description |
---|---|---|
id | string | id of object stored |
secret | string | secret to access the object's data |
Returns
Promise
<Type
<StorageObject
>>
Defined in
src/service/Client_storage_service.h.ts:50
getVersion
▸ getVersion(): Promise
<Version
>
Get version of conncted storage service
Returns
Promise
<Version
>
Defined in
src/service/Client_storage_service.h.ts:35
isReady
▸ isReady(): Promise
<boolean
>
Get readiness sattus of storage service
Returns
Promise
<boolean
>
Defined in
src/service/Client_storage_service.h.ts:30
uploadObject
▸ uploadObject(id
, name
, data
): Promise
<Type
<UploadResponse
>>
Upload an object using the
Parameters
Name | Type | Description |
---|---|---|
id | string | id of object |
name | string | name of object |
data | string | content of uploaded object base64 encoded |
Returns
Promise
<Type
<UploadResponse
>>