Interface: AttachmentStorage
attachment.AttachmentStorage
Implemented by
Methods
delete
▸ delete(vault
, id
): Promise
<void
>
Parameters
Name | Type |
---|---|
vault |
string |
id |
string |
Returns
Promise
<void
>
Defined in
deleteAll
▸ deleteAll(vault
): Promise
<void
>
Parameters
Name | Type |
---|---|
vault |
string |
Returns
Promise
<void
>
Defined in
get
▸ get(vault
, id
):
Promise
<Attachment
>
Parameters
Name | Type |
---|---|
vault |
string |
id |
string |
Returns
Promise
<Attachment
>
Defined in
getUsage
▸ getUsage(vault
): Promise
<number
>
Parameters
Name | Type |
---|---|
vault |
string |
Returns
Promise
<number
>
Defined in
put
▸ put(a
): Promise
<void
>
Parameters
Name | Type |
---|---|
a |
Attachment |
Returns
Promise
<void
>