mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-30 06:14:18 +00:00
23 lines
582 B
TypeScript
23 lines
582 B
TypeScript
import ApplicationManager from '../application-manager';
|
|
import { Service } from '../types/service';
|
|
|
|
export interface ServiceAction {
|
|
action: string;
|
|
serviceId: number;
|
|
current: Service;
|
|
target: Service;
|
|
options: any;
|
|
}
|
|
|
|
declare function doRestart(applications: ApplicationManager, appId: number, force: boolean): Promise<void>;
|
|
|
|
declare function doPurge(applications: ApplicationManager, appId: number, force: boolean): Promise<void>;
|
|
|
|
declare function serviceAction(
|
|
action: string,
|
|
serviceId: number,
|
|
current: Service,
|
|
target: Service,
|
|
options: any,
|
|
): ServiceAction;
|