api/types/events: Message: remove deprecated Status, ID, and From fields

These fields were deprecated in [moby@72f188] (docker v1.10, API v1.22),
with the deprecation message updated to be in the correct format in
[moby@247f47] (docker v23.0).

[moby@72f188]: 72f1881df1
[moby@247f47]: 247f4796d2

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-08-28 01:02:11 +02:00
parent 5815eb82ee
commit 1b74b3e1ce
3 changed files with 3 additions and 18 deletions

View File

@@ -22,6 +22,9 @@ keywords: "API, Docker, rcli, REST, documentation"
saved.
* `POST /images/load` now accepts multiple `platform` query-arguments
to allow selecting which platform(s) of a multi-platform image to load.
* `GET /events` no longer includes the deprecated `status`, `id`, and `from`
fields. These fields were removed in API v1.22, but still included
in the response.
* Deprecated: the Engine was automatically backfilling empty `PortBindings` lists with
a PortBinding with an empty HostIP and HostPort when calling `POST /containers/{id}/start`.
This behavior is now deprecated, and a warning is returned by `POST /containers/create`.

View File

@@ -110,15 +110,6 @@ type Actor struct {
// Message represents the information an event contains
type Message struct {
// Deprecated: use Action instead.
// Information from JSONMessage.
// With data only in container events.
Status string `json:"status,omitempty"`
// Deprecated: use Actor.ID instead.
ID string `json:"id,omitempty"`
// Deprecated: use Actor.Attributes["image"] instead.
From string `json:"from,omitempty"`
Type Type
Action Action
Actor Actor

View File

@@ -110,15 +110,6 @@ type Actor struct {
// Message represents the information an event contains
type Message struct {
// Deprecated: use Action instead.
// Information from JSONMessage.
// With data only in container events.
Status string `json:"status,omitempty"`
// Deprecated: use Actor.ID instead.
ID string `json:"id,omitempty"`
// Deprecated: use Actor.Attributes["image"] instead.
From string `json:"from,omitempty"`
Type Type
Action Action
Actor Actor