Skip to content

api/types/container: merge Stats and StatsResponse#49287

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:stats_merge
Jan 17, 2025
Merged

api/types/container: merge Stats and StatsResponse#49287
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:stats_merge

Conversation

@thaJeztah
Copy link
Member

The StatsResponse type was a compatibility-wrapper introduced in d337994 to differentiate responses for API < 1.21 and API >= 1.21. API versions lower than 1.24 are deprecated, and we can merge these types again.

The Stats type was not used directly, but deprecating it, and making it an alias for StatsResponse, which provides a superset of its fields.

- Description for the changelog

Go SDK: api/types/container: merge Stats and StatsResponse

- A picture of a cute animal (not mandatory but encouraged)

The StatsResponse type  was a compatibility-wrapper introduced in
d337994 to differentiate responses
for  API < 1.21 and API >= 1.21. API versions lower than 1.24 are
deprecated, and we can merge these types again.

The Stats type was not used directly, but deprecating it, and
making it an alias for StatsResponse, which provides a superset
of its fields.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 28.0.0 milestone Jan 16, 2025
@thaJeztah thaJeztah self-assigned this Jan 16, 2025
@thaJeztah thaJeztah merged commit bf49fbf into moby:master Jan 17, 2025
161 checks passed
@thaJeztah thaJeztah deleted the stats_merge branch January 17, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants