@wocker/cron-plugin
Version:
Cron plugin for wocker
22 lines (21 loc) • 991 B
TypeScript
import { AppService, PluginConfigService, DockerService, FileSystem } from "@wocker/core";
export declare class CronService {
protected readonly appService: AppService;
protected readonly pluginConfigService: PluginConfigService;
protected readonly dockerService: DockerService;
protected readonly name = "cron";
protected readonly version = "1.0.15";
protected readonly oldContainerNames: string[];
protected readonly oldImages: string[];
constructor(appService: AppService, pluginConfigService: PluginConfigService, dockerService: DockerService);
get fs(): FileSystem;
get containerName(): string;
get imageName(): string;
start(restart?: boolean, rebuild?: boolean): Promise<void>;
stop(): Promise<void>;
build(rebuild?: boolean): Promise<void>;
edit(containerName: string): Promise<void>;
getCrontab(containerName: string): string;
setCrontab(containerName: string, crontab: string): void;
logs(): Promise<void>;
}