mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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]:247f4796d2Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -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`.
|
||||
|
||||
@@ -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
|
||||
|
||||
9
vendor/github.com/moby/moby/api/types/events/events.go
generated
vendored
9
vendor/github.com/moby/moby/api/types/events/events.go
generated
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user