UNPKG

@wocker/mariadb-plugin

Version:
36 lines (35 loc) 1.96 kB
import { AppConfigService, DockerService, FileSystem, PluginConfigService, ProxyService } from "@wocker/core"; import { Config } from "../makes/Config"; import { Service, ServiceProps } from "../makes/Service"; export declare class MariadbService { protected readonly appConfigService: AppConfigService; protected readonly pluginConfigService: PluginConfigService; protected readonly dockerService: DockerService; protected readonly proxyService: ProxyService; protected _config?: Config; constructor(appConfigService: AppConfigService, pluginConfigService: PluginConfigService, dockerService: DockerService, proxyService: ProxyService); get configPath(): string; get config(): Config; get fs(): FileSystem; get dbFs(): FileSystem; get dataFs(): FileSystem; protected query(service: Service, query: string): Promise<string | null>; getDatabases(service: Service): Promise<string[]>; protected getDumpsDatabases(service: Service): Promise<string[]>; protected getFiles(service: Service, database: string): Promise<string[]>; init(adminHostname?: string): Promise<void>; list(): Promise<string>; getServices(): string[]; start(name?: string, restart?: boolean): Promise<void>; startAdmin(): Promise<void>; stop(name?: string): Promise<void>; create(serviceProps?: Partial<ServiceProps>): Promise<void>; upgrade(serviceProps?: Partial<ServiceProps>): Promise<void>; destroy(name?: string, yes?: boolean, force?: boolean): Promise<void>; setDefault(name: string): Promise<void>; mariadb(name?: string, database?: string): Promise<void>; backup(name?: string, database?: string, filename?: string): Promise<void>; deleteBackup(name?: string, database?: string, filename?: string, confirm?: boolean): Promise<void>; restore(name?: string, database?: string, filename?: string): Promise<void>; dump(name?: string, database?: string): Promise<void>; }