Padloc Logo Docs & Resources

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

core/src/attachment.ts:172


deleteAll

deleteAll(vault): Promise<void>

Parameters

Name Type
vault string

Returns

Promise<void>

Defined in

core/src/attachment.ts:173


get

get(vault, id): Promise<Attachment>

Parameters

Name Type
vault string
id string

Returns

Promise<Attachment>

Defined in

core/src/attachment.ts:171


getUsage

getUsage(vault): Promise<number>

Parameters

Name Type
vault string

Returns

Promise<number>

Defined in

core/src/attachment.ts:174


put

put(a): Promise<void>

Parameters

Name Type
a Attachment

Returns

Promise<void>

Defined in

core/src/attachment.ts:170