E53E api/types: rename container.StatsResponse to StatsResponseReader by thaJeztah · Pull Request #48041 · moby/moby · GitHub
[go: up one dir, main page]

Skip to content

Conversation

thaJeztah
Copy link
Member

api/types: move stats-types to api/types/container

commit 17c3269 moved the ContainerStats type to the container package, and renamed it to StatsResponse. However, this name is chosen poorly, as it documents it to be the response of the API endpoint, but is more accurately a wrapper around a reader, used to read a (stream of) StatsJSON. We want to change StatsJSON to StatsResponse, as it's more consistent with other response types.

As 17c3269 did not make it into a non-pre-release, we can still change this.

api/types: rename container.StatsResponse to StatsResponseReader

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

commit 17c3269 moved the ContainerStats
type to the container package, and renamed it to StatsResponse. However,
this name is chosen poorly, as it documents it to be the response of
the API endpoint, but is more accurately a wrapper around a reader,
used to read a (stream of) StatsJSON. We want to change StatsJSON
to StatsResponse, as it's more consistent with other response types.

As 17c3269 did not make it into a
non-pre-release, we can still change this.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code area/go-sdk impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels Jun 20, 2024
@thaJeztah thaJeztah added this to the 27.0.0 milestone Jun 20, 2024
@thaJeztah thaJeztah self-assigned this Jun 20, 2024
@thaJeztah thaJeztah requested a review from vvoland June 20, 2024 08:03
@vvoland vvoland merged commit 5ace798 into moby:master Jun 20, 2024
@thaJeztah thaJeztah deleted the rename_statsresponse branch June 20, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/go-sdk impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/refactor PR's that refactor, or clean-up code status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0