UNPKG

@solid/community-server

Version:

Community Solid Server: an open and modular implementation of the Solid specifications

33 lines (32 loc) 1.72 kB
import type { KeyValueStorage } from '../storage/keyvalue/KeyValueStorage'; import type { ResourceStore } from '../storage/ResourceStore'; import type { PodGenerator } from './generate/PodGenerator'; import type { ResourcesGenerator } from './generate/ResourcesGenerator'; import type { PodManager } from './PodManager'; import type { PodSettings } from './settings/PodSettings'; /** * Pod manager that creates a store for the pod with a {@link PodGenerator} * and fills it with resources from a {@link ResourcesGenerator}. * * Part of the dynamic pod creation. * 1. Calls a PodGenerator to instantiate a new resource store for the pod. * 2. Generates the pod resources based on the templates as usual. * 3. Adds the created pod to the routing storage, which is used for linking pod identifiers to their resource stores. * * @see {@link TemplatedPodGenerator}, {@link ConfigPodInitializer}, {@link BaseUrlRouterRule} */ export declare class ConfigPodManager implements PodManager { protected readonly logger: import("global-logger-factory").Logger<unknown>; private readonly podGenerator; private readonly routingStorage; private readonly resourcesGenerator; private readonly store; /** * @param podGenerator - Generator for the pod stores. * @param resourcesGenerator - Generator for the pod resources. * @param routingStorage - Where to store the generated pods so they can be routed to. * @param store - The default ResourceStore */ constructor(podGenerator: PodGenerator, resourcesGenerator: ResourcesGenerator, routingStorage: KeyValueStorage<string, ResourceStore>, store: ResourceStore); createPod(settings: PodSettings): Promise<void>; }