fix(core): update

This commit is contained in:
Philipp Kunz 2019-09-21 21:57:57 +02:00
parent c76968bbe8
commit 4f838837f8

View File

@ -90,4 +90,17 @@ export class DockerNetwork {
public async remove() {
const response = await this.dockerHost.request('DELETE', `/networks/${this.Id}`);
}
public async getContainersOnNetwork(): Promise<{
[key: string]: {
Name: string;
EndpointID: string;
MacAddress: string;
IPv4Address: string;
IPv6Address: string;
};
}> {
const response = await this.dockerHost.request('GET', `/networks/${this.Id}`);
return response.body.Containers;
}
}