balena-supervisor/typings/dockerode-ext.d.ts
Cameron Diver 892d227cc2
compose/service: Convert module to typescript and add network config
Stability improvements;
* Printing of unsupported compose fields
* Added a lot of tests
* All compose configuration has a default value, enabling better
comparison

Change-type: minor
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-09-21 10:30:27 +01:00

26 lines
552 B
TypeScript

import { ContainerInspectInfo } from 'dockerode';
declare module 'dockerode' {
// Extend the HostConfig interface with the missing fields.
// TODO: Add these upstream to DefinitelyTyped
interface HostConfig {
Sysctls: { [sysctlsOpt: string]: string };
GroupAdd: string[];
UsernsMode: string;
}
export interface DockerHealthcheck {
Test: string[];
Interval?: number;
Timeout?: number;
Retries?: number;
StartPeriod?: number;
}
interface ContainerCreateOptions {
Healthcheck?: DockerHealthcheck;
StopTimeout?: number;
}
}