@@ -94,7 +94,7 @@ export type DefinitionsGenericResources = {
94
94
} ;
95
95
} [ ] ;
96
96
export type DefinitionsDevices = {
97
- capabilities ? : ListOfStrings ;
97
+ capabilities : ListOfStrings ;
98
98
count ?: string | number ;
99
99
device_ids ?: ListOfStrings ;
100
100
driver ?: string ;
@@ -148,15 +148,7 @@ export type Deployment = {
148
148
max_replicas_per_node ?: number | string ;
149
149
} ;
150
150
} | null ;
151
- export type ExtraHosts =
152
- | {
153
- /**
154
- * This interface was referenced by `undefined`'s JSON-Schema definition
155
- * via the `patternProperty` ".+".
156
- */
157
- [ k : string ] : string | unknown [ ] ;
158
- }
159
- | string [ ] ;
151
+ export type ExtraHosts = { } | string [ ] ;
160
152
export type ServiceConfigOrSecret = (
161
153
| string
162
154
| {
@@ -174,6 +166,7 @@ export type EnvFile =
174
166
| string
175
167
| {
176
168
path : string ;
169
+ format ?: string ;
177
170
required ?: boolean | string ;
178
171
}
179
172
) [ ] ;
@@ -513,6 +506,8 @@ export interface DefinitionsService {
513
506
app_protocol ?: string ;
514
507
}
515
508
) [ ] ;
509
+ post_start ?: DefinitionsServiceHook [ ] ;
510
+ pre_stop ?: DefinitionsServiceHook [ ] ;
516
511
privileged ?: boolean | string ;
517
512
profiles ?: ListOfStrings ;
518
513
pull_policy ?: "always" | "never" | "if_not_present" | "build" | "missing" ;
@@ -591,6 +586,13 @@ export interface DefinitionsHealthcheck {
591
586
start_period ?: string ;
592
587
start_interval ?: string ;
593
588
}
589
+ export interface DefinitionsServiceHook {
590
+ command ?: Command ;
591
+ user ?: string ;
592
+ privileged ?: boolean | string ;
593
+ working_dir ?: string ;
594
+ environment ?: ListOrDict ;
595
+ }
594
596
export interface PropertiesNetworks {
595
597
[ k : string ] : DefinitionsNetwork ;
596
598
}
0 commit comments