default
Api Code Documentation / Exports / service/Client_storage_service / default
service/Client_storage_service.default
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new default(settings
)
Parameters
Name | Type |
---|---|
settings | AxiosRequestConfig <any > |
Defined in
src/service/Client_storage_service.ts:26
Properties
axiosInstance
• Private
axiosInstance: AxiosInstance
Defined in
src/service/Client_storage_service.ts:22
timeStamp
• Private
timeStamp: number
= 0
Defined in
src/service/Client_storage_service.ts:24
Methods
deleteObject
▸ deleteObject(id
, secret
): Promise
<Type
<DeleteResponse
>>
Parameters
Name | Type |
---|---|
id | string |
secret | string |
Returns
Promise
<Type
<DeleteResponse
>>
Implementation of
StorageServiceClientI.deleteObject
Defined in
src/service/Client_storage_service.ts:137
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
>>
Implementation of
StorageServiceClientI.downloadObject
Defined in
src/service/Client_storage_service.ts:96
getAxiosInstance
▸ getAxiosInstance(): AxiosInstance
Returns
AxiosInstance
Defined in
src/service/Client_storage_service.ts:160
getVersion
▸ getVersion(): Promise
<Version
>
Get version of conncted storage service
Returns
Promise
<Version
>
Implementation of
StorageServiceClientI.getVersion
Defined in
src/service/Client_storage_service.ts:55
isReady
▸ isReady(): Promise
<boolean
>
Get readiness sattus of storage service
Returns
Promise
<boolean
>
Implementation of
Defined in
src/service/Client_storage_service.ts:50
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
>>
Implementation of
StorageServiceClientI.uploadObject