mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-21 02:01:35 +00:00
fix: Rework code to avoid prettier errors
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
0820dbca68
commit
00bd88c50d
@ -19,6 +19,15 @@ export interface ServiceHealthcheck {
|
||||
retries?: number;
|
||||
}
|
||||
|
||||
export interface ServiceNetworkDictionary {
|
||||
[networkName: string]: {
|
||||
aliases?: string[];
|
||||
ipv4Address?: string;
|
||||
ipv6Address?: string;
|
||||
linkLocalIps?: string[];
|
||||
};
|
||||
}
|
||||
|
||||
// This is the config directly from the compose file (after running it
|
||||
// through _.camelCase)
|
||||
export interface ServiceComposeConfig {
|
||||
@ -47,16 +56,7 @@ export interface ServiceComposeConfig {
|
||||
labels?: { [labelName: string]: string };
|
||||
running: boolean;
|
||||
networkMode?: string;
|
||||
networks?:
|
||||
| string[]
|
||||
| {
|
||||
[networkName: string]: {
|
||||
aliases?: string[];
|
||||
ipv4Address?: string;
|
||||
ipv6Address?: string;
|
||||
linkLocalIps?: string[];
|
||||
};
|
||||
};
|
||||
networks?: string[] | ServiceNetworkDictionary;
|
||||
pid?: string;
|
||||
pidsLimit?: number;
|
||||
ports?: string[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user