Skip to content

Commit 1b74b3e

Browse files
committed
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]: moby@72f1881 [moby@247f47]: moby@247f479 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 5815eb8 commit 1b74b3e

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

api/docs/CHANGELOG.md

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

api/types/events/events.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,6 @@ type Actor struct {
110110

111111
// Message represents the information an event contains
112112
type Message struct {
113-
// Deprecated: use Action instead.
114-
// Information from JSONMessage.
115-
// With data only in container events.
116-
Status string `json:"status,omitempty"`
117-
// Deprecated: use Actor.ID instead.
118-
ID string `json:"id,omitempty"`
119-
// Deprecated: use Actor.Attributes["image"] instead.
120-
From string `json:"from,omitempty"`
121-
122113
Type Type
123114
Action Action
124115
Actor Actor

vendor/github.com/moby/moby/api/types/events/events.go

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)