UNPKG

@signalk/resources-provider

Version:

Resources provider plugin for Signal K server.

30 lines 1.01 kB
import { IResourceStore, StoreRequestParams } from '../types'; import { Resource } from '@signalk/server-api'; export declare const getUuid: (skIdentifier: string) => string; export declare class FileStore implements IResourceStore { private debug; savePath: string; resources: any; pkg: { id: string; }; private initPromise; constructor(pluginId: string, debug: (s: any) => void); private waitForInit; init(config: any): Promise<{ error: boolean; message: string; }>; private doInit; createSavePaths(resTypes: any): Promise<{ error: boolean; message: string; }>; getResource(type: string, itemUuid: string, property?: string): Promise<Resource<object>>; getResources(type: string, params: any): Promise<{ [key: string]: Resource<any>; }>; setResource(r: StoreRequestParams): Promise<void>; checkPath(path?: string): Promise<boolean | Error>; } //# sourceMappingURL=filestorage.d.ts.map