Sebastiaan van Stijn
3f2e9da010
api/server/router/container: move API adjustments to API
...
The daemon used to have various implementation to adjust the container-inspect
output for different API versions, which could return different go structs,
and because of that required a function with a `interface{}` output type.
Most of those adjustments have been removed, and we no longer need separate
types for backward compatibility with old API versions.
This patch;
- Removes the Daemon.ContainerInspectCurrent method
- Introduces a backend.ContainerInspectOptions struct
- Updates the Daemon.ContainerInspect method's signature to accept the above
- Moves API-version specific adjustments to api/server/router/container,
similar to how such adjustments are made for other endpoints.
Note that we should probably change the backend's signature further,
and define separate types for the backend's inspect and the API's
inspect response. Considering that the Backend signatures should be
considered "internal", we can do that in a future change.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2024-10-15 17:03:03 +02:00
..
2024-10-15 17:03:03 +02:00
2024-09-12 15:35:15 +02:00
2024-10-11 17:16:29 +02:00
2023-09-05 12:09:26 +02:00
2024-08-08 10:52:33 +02:00
2024-10-11 14:52:35 +02:00
2023-08-24 17:51:07 +02:00
2024-07-01 23:53:28 +02:00
2022-12-21 11:09:01 +01:00
2023-10-11 17:52:23 +02:00
2024-09-06 23:06:20 +02:00
2018-02-05 16:51:57 -05:00
2024-06-20 11:10:54 +02:00
2024-07-01 23:53:28 +02:00
2024-06-20 10:21:42 +02:00
2017-09-06 12:05:19 -04:00
2023-05-19 20:38:51 +02:00
2023-05-19 20:38:51 +02:00
2023-05-19 20:38:51 +02:00
2018-02-05 16:51:57 -05:00
2022-03-14 16:28:57 -04:00
2024-06-10 10:20:45 +02:00
2024-06-10 10:20:45 +02:00
2024-06-10 10:20:45 +02:00
2024-07-22 19:20:12 +00:00
2022-07-29 23:05:18 +02:00
2024-07-02 12:34:53 +02:00
2024-09-06 21:53:09 +10:00
2023-03-30 10:29:07 +01:00
2023-08-29 00:38:08 +02:00
2024-06-04 17:44:46 +02:00
2023-09-05 12:09:26 +02:00
2018-02-05 16:51:57 -05:00
2023-05-19 20:38:51 +02:00
2018-02-05 16:51:57 -05:00
2023-10-11 17:52:23 +02:00
2023-05-19 20:38:51 +02:00
2023-12-19 10:20:38 +01:00
2024-06-18 14:13:07 +02:00
2024-06-17 11:06:06 +02:00
2024-06-17 17:32:56 +02:00
2023-09-15 20:12:27 +02:00
2020-04-14 17:22:19 +02:00
2024-06-17 00:26:46 +02:00
2024-09-06 21:53:09 +10:00
2023-07-18 14:18:42 +02:00
2024-06-13 13:29:39 +02:00
2024-01-19 17:32:21 +01:00
2024-07-02 21:20:29 +02:00
2024-03-07 10:57:03 +01:00
2024-06-17 20:19:20 +01:00
2024-05-29 22:38:27 +02:00
2024-02-06 18:44:33 +01:00
2024-09-15 12:28:58 +01:00
2024-06-17 20:19:20 +01:00
2023-05-19 20:38:51 +02:00
2024-07-31 18:38:43 +01:00
2024-10-10 02:39:19 +02:00
2023-10-11 17:52:23 +02:00
2023-05-19 20:38:51 +02:00
2023-10-11 17:52:23 +02:00
2024-03-12 16:20:21 +01:00
2024-06-30 19:13:23 +02:00
2022-04-21 17:33:07 -04:00
2024-07-01 00:49:15 +02:00
2024-07-02 12:46:48 +02:00
2023-08-23 15:47:43 +02:00
2023-08-23 15:47:43 +02:00
2023-08-29 00:38:08 +02:00
2023-11-10 20:09:25 +00:00
2023-06-01 14:45:25 -04:00
2023-10-26 00:10:23 +01:00
2023-06-01 14:45:24 -04:00
2024-09-30 15:49:04 +01:00
2023-08-29 00:38:08 +02:00
2024-07-02 12:46:47 +02:00
2024-07-02 12:46:47 +02:00
2023-09-07 18:38:19 +00:00
2024-09-11 19:44:35 +02:00
2023-05-19 20:38:51 +02:00
2024-09-12 19:40:12 +02:00
2023-11-10 20:09:25 +00:00
2024-06-27 23:18:47 +02:00
2024-07-03 17:14:03 +02:00
2023-06-01 14:45:25 -04:00
2024-07-03 17:14:03 +02:00
2024-10-15 17:03:03 +02:00
2023-05-19 20:38:51 +02:00
2023-05-19 20:38:51 +02:00
2024-06-14 15:25:07 +02:00
2023-07-07 13:01:36 +02:00
2023-07-07 13:01:36 +02:00
2018-02-05 16:51:57 -05:00
2024-07-02 12:46:48 +02:00
2023-05-19 20:38:51 +02:00
2022-09-23 16:56:52 -04:00
2024-07-02 12:46:48 +02:00
2023-12-12 22:51:23 +01:00
2023-12-12 22:51:23 +01:00
2018-02-05 16:51:57 -05:00
2024-08-22 21:33:46 +00:00
2023-10-11 17:52:23 +02:00
2023-06-01 14:45:24 -04:00
2023-10-11 17:52:23 +02:00
2024-09-06 21:53:09 +10:00
2023-10-11 17:52:23 +02:00
2023-10-11 17:52:23 +02:00
2023-07-22 11:56:41 +02:00
2024-07-31 18:38:43 +01:00
2024-09-11 17:20:07 +02:00
2024-01-31 21:08:34 -05:00
2024-09-06 21:53:09 +10:00
2023-06-06 13:10:05 -04:00
2023-06-06 13:10:05 -04:00
2023-06-29 00:33:03 +02:00
2024-01-22 20:45:21 +01:00
2024-06-14 15:25:07 +02:00
2024-07-05 19:05:15 -04:00
2024-09-23 16:27:06 +02:00
2023-06-01 14:45:25 -04:00
2023-06-01 14:45:25 -04:00
2023-10-11 17:52:23 +02:00
2024-06-17 14:50:09 +02:00
2023-05-19 20:38:51 +02:00
2023-08-29 00:38:08 +02:00
2024-06-13 13:29:39 +02:00
2024-01-12 18:09:24 +01:00
2024-07-27 00:05:57 +02:00
2023-06-01 14:45:25 -04:00
2024-06-11 03:37:54 +09:00
2024-06-11 03:37:54 +09:00
2023-05-19 20:38:51 +02:00
2018-02-05 16:51:57 -05:00
2023-05-19 20:38:51 +02:00
2018-02-05 16:51:57 -05:00
2023-10-11 17:52:23 +02:00
2024-06-13 16:45:54 +02:00
2024-01-19 20:23:12 +00:00
2024-06-14 15:25:07 +02:00
2023-06-01 14:45:25 -04:00
2024-06-17 14:45:17 +02:00
2023-03-15 17:52:45 +01:00
2024-06-20 10:21:42 +02:00
2024-06-20 10:21:42 +02:00
2024-06-20 10:21:42 +02:00
2024-06-13 13:29:39 +02:00
2023-07-05 12:27:00 +02:00
2023-08-29 00:38:08 +02:00
2023-06-29 00:33:03 +02:00
2024-06-14 15:25:07 +02:00
2023-06-06 12:13:05 -04:00
2024-04-15 17:55:47 +02:00
2019-03-12 18:41:55 -07:00
2024-06-14 15:25:07 +02:00
2020-04-14 17:22:23 +02:00
2018-08-09 00:45:00 +09:00
2021-07-02 13:51:55 +02:00
2024-07-26 13:50:45 +02:00
2024-07-26 13:50:13 +02:00
2024-07-26 13:50:39 +02:00
2018-04-23 13:52:44 -07:00
2018-08-13 21:59:11 -07:00