mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-08 12:20:23 +00:00
Add missing ServiceManager methods
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
1bf5eeb046
commit
8315413046
@ -226,6 +226,15 @@ export class ServiceManager extends (EventEmitter as {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public getAllByAppId(appId: number) {
|
||||||
|
return this.getAll(`app-id=${appId}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async stopAllByAppId(appId: number) {
|
||||||
|
for (const app of await this.getAllByAppId(appId)) {
|
||||||
|
await this.kill(app, { removeContainer: false });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public async create(service: Service) {
|
public async create(service: Service) {
|
||||||
const mockContainerId = this.config.newUniqueKey();
|
const mockContainerId = this.config.newUniqueKey();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user