UNPKG

@wocker/mariadb-plugin

Version:
43 lines (42 loc) 1.16 kB
import { EnvConfig } from "@wocker/core"; export declare const STORAGE_FILESYSTEM = "filesystem"; export declare const STORAGE_VOLUME = "volume"; export type ServiceStorageType = typeof STORAGE_FILESYSTEM | typeof STORAGE_VOLUME; export type ServiceProps = { name: string; host?: string; user?: string; username?: string; password?: string; passwordHash?: string; rootPassword?: string; storage?: ServiceStorageType; volume?: string; image?: string; imageName?: string; imageVersion?: string; env?: EnvConfig; containerPort?: number; }; export declare class Service { name: string; host?: string; username?: string; password?: string; passwordHash?: string; rootPassword?: string; storage?: ServiceStorageType; _volume?: string; imageName: string; imageVersion: string; env?: EnvConfig; containerPort?: number; constructor(data: ServiceProps); get auth(): string[]; get imageTag(): string; get containerName(): string; get volume(): string; set volume(volume: string); get defaultVolume(): string; toObject(): ServiceProps; }