@wocker/mariadb-plugin
Version:
Mariadb plugin for wocker
26 lines (25 loc) • 1.77 kB
TypeScript
import { AppConfigService, DockerService } from "@wocker/core";
import { ServiceStorageType } from "../makes/Service";
import { MariadbService } from "../services/MariadbService";
export declare class MariadbController {
protected readonly appConfigService: AppConfigService;
protected readonly dockerService: DockerService;
protected readonly mariadbService: MariadbService;
constructor(appConfigService: AppConfigService, dockerService: DockerService, mariadbService: MariadbService);
mariadb(service?: string, database?: string): Promise<void>;
init(adminHostname?: string): Promise<void>;
create(name?: string, username?: string, password?: string, rootPassword?: string, host?: string, storage?: ServiceStorageType, imageName?: string, imageVersion?: string, volume?: string, containerPort?: number): Promise<void>;
destroy(service?: string, force?: boolean, yes?: boolean): Promise<void>;
upgrade(name?: string, storage?: ServiceStorageType, volume?: string, imageName?: string, imageVersion?: string, containerPort?: number, enableAdmin?: boolean, disableAdmin?: boolean): Promise<void>;
default(service?: string): Promise<string | undefined>;
start(service?: string, restart?: boolean): Promise<void>;
stop(service?: string): Promise<void>;
dump(service?: string, database?: string): Promise<void>;
backup(service?: string, yes?: boolean, del?: boolean, database?: string, filename?: string): Promise<void>;
restore(service?: string, database?: string, filename?: string): Promise<void>;
list(): Promise<string>;
getEmp(): string[];
getDatabases(name?: string): Promise<string[]>;
getFilename(service?: string, database?: string): Promise<string[]>;
getExistsServices(): string[];
}