mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-25 16:31:05 +00:00
26 lines
552 B
TypeScript
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;
|
||
|
}
|
||
|
|
||
|
}
|