Padloc Logo Docs & Resources

Class: MemoryAttachmentStorage

attachment.MemoryAttachmentStorage

Implements

Constructors

constructor

new MemoryAttachmentStorage()

Properties

_storage

Private _storage: Map<string, Attachment>

Defined in

core/src/attachment.ts:178

Methods

delete

delete(vault, id): Promise<void>

Parameters

Name Type
vault string
id string

Returns

Promise<void>

Implementation of

AttachmentStorage.delete

Defined in

core/src/attachment.ts:192


deleteAll

deleteAll(vault): Promise<void>

Parameters

Name Type
vault string

Returns

Promise<void>

Implementation of

AttachmentStorage.deleteAll

Defined in

core/src/attachment.ts:196


get

get(vault, id): Promise<Attachment>

Parameters

Name Type
vault string
id string

Returns

Promise<Attachment>

Implementation of

AttachmentStorage.get

Defined in

core/src/attachment.ts:184


getUsage

getUsage(vault): Promise<number>

Parameters

Name Type
vault string

Returns

Promise<number>

Implementation of

AttachmentStorage.getUsage

Defined in

core/src/attachment.ts:204


put

put(a): Promise<void>

Parameters

Name Type
a Attachment

Returns

Promise<void>

Implementation of

AttachmentStorage.put

Defined in

core/src/attachment.ts:180