Skip to content

Documentation / @tenancy-node/core / StorageBootstrapper

Class: StorageBootstrapper ​

Defined in: core/src/storage/tenant-storage.ts:92

Entrega un recurso aislado para el tenant del contexto (conexión, caché, disco...). No modifica estado global: el recurso se crea la primera vez que se pide dentro de un contexto y se libera con revert al salir de él.

Implements ​

Constructors ​

Constructor ​

new StorageBootstrapper(driver): StorageBootstrapper

Defined in: core/src/storage/tenant-storage.ts:95

Parameters ​

driver ​

StorageDriver

Returns ​

StorageBootstrapper

Properties ​

name ​

readonly name: "storage" = STORAGE_RESOURCE

Defined in: core/src/storage/tenant-storage.ts:93

Implementation of ​

Bootstrapper.name

Methods ​

bootstrap() ​

bootstrap(tenant): TenantStorage

Defined in: core/src/storage/tenant-storage.ts:97

tenant es null en el contexto central.

Parameters ​

tenant ​

Tenant | null

Returns ​

TenantStorage

Implementation of ​

Bootstrapper.bootstrap

Publicado bajo la licencia MIT.