api/types/container.StatsResponseReader: move to client

This type was only used in the client, and needs a rewrite; let's
move it to the client first.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-07-26 11:11:11 +02:00
parent c4afa77157
commit f67e6555bf
7 changed files with 50 additions and 54 deletions

View File

@@ -151,7 +151,7 @@ func (s *DockerAPISuite) TestGetContainerStats(c *testing.T) {
runSleepingContainer(c, "--name", name)
type b struct {
stats container.StatsResponseReader
stats client.StatsResponseReader
err error
}
@@ -255,7 +255,7 @@ func (s *DockerAPISuite) TestGetContainerStatsStream(c *testing.T) {
runSleepingContainer(c, "--name", name)
type b struct {
stats container.StatsResponseReader
stats client.StatsResponseReader
err error
}
@@ -296,7 +296,7 @@ func (s *DockerAPISuite) TestGetContainerStatsNoStream(c *testing.T) {
runSleepingContainer(c, "--name", name)
type b struct {
stats container.StatsResponseReader
stats client.StatsResponseReader
err error
}
@@ -1332,7 +1332,7 @@ func (s *DockerAPISuite) TestContainerAPIStatsWithNetworkDisabled(c *testing.T)
cli.WaitRun(c, name)
type b struct {
stats container.StatsResponseReader
stats client.StatsResponseReader
err error
}
bc := make(chan b, 1)