fix(structure): formatted, ci updates and new readme

This commit is contained in:
2019-11-20 13:36:03 +00:00
parent 96a2992432
commit b21fe80109
5 changed files with 58 additions and 88 deletions

View File

@ -92,13 +92,15 @@ export class DockerNetwork {
const response = await this.dockerHost.request('DELETE', `/networks/${this.Id}`);
}
public async getContainersOnNetwork(): Promise<Array<{
public async getContainersOnNetwork(): Promise<
Array<{
Name: string;
EndpointID: string;
MacAddress: string;
IPv4Address: string;
IPv6Address: string;
}>> {
}>
> {
const returnArray = [];
const response = await this.dockerHost.request('GET', `/networks/${this.Id}`);
for (const key of Object.keys(response.body.Containers)) {
@ -106,7 +108,6 @@ export class DockerNetwork {
}
return returnArray;
}
public async getContainersOnNetworkForService(serviceArg: DockerService) {

View File

@ -13,6 +13,6 @@ export interface IServiceCreationDescriptor {
ports: string[];
accessHostDockerSock?: boolean;
resources?: {
memorySizeMB: number
memorySizeMB: number;
};
}