@wocker/pgsql-plugin
Version:
PostgreSQL plugin for wocker
41 lines (40 loc) • 1.12 kB
TypeScript
export declare const STORAGE_VOLUME = "volume";
export declare const STORAGE_FILESYSTEM = "filesystem";
export type ServiceStorage = typeof STORAGE_VOLUME | typeof STORAGE_FILESYSTEM;
export type ServiceProps = {
name: string;
user?: string;
password?: string;
host?: string;
port?: string | number;
image?: string;
imageName?: string;
imageVersion?: string;
storage?: ServiceStorage;
volume?: string;
containerPort?: number;
};
export declare class Service {
name: string;
user?: string;
password?: string;
host?: string;
port?: string | number;
_image?: string;
_imageName?: string;
_imageVersion?: string;
storage?: ServiceStorage;
_volume?: string;
containerPort?: number;
constructor(data: ServiceProps);
get isExternal(): boolean;
get auth(): string[];
get containerName(): string;
get image(): string;
set image(image: string);
set imageName(imageName: string);
set imageVersion(imageVersion: string);
get volume(): string;
get defaultVolume(): string;
toObject(): ServiceProps;
}