@wocker/pgsql-plugin
Version:
PostgreSQL plugin for wocker
35 lines (34 loc) • 931 B
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;
imageName?: string;
imageVersion?: string;
storage?: ServiceStorage;
_volume?: string;
containerPort?: number;
constructor(data: ServiceProps);
get containerName(): string;
get imageTag(): string;
get volume(): string;
get defaultVolume(): string;
toObject(): ServiceProps;
}