api/types: move Ping and swarm.Status to client

The API does not produce these as a response; the fields in the Ping
struct, including the Swarm status are propagated from headers returned
by the /_ping endpoint.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-10-22 10:19:54 +02:00
parent 695a465211
commit 8dc5d1e64d
16 changed files with 123 additions and 131 deletions

View File

@@ -2235,7 +2235,7 @@ func (s *DockerDaemonSuite) TestFailedPluginRemove(c *testing.T) {
d.Restart(c)
ctx, cancel = context.WithTimeout(testutil.GetContext(c), 30*time.Second)
defer cancel()
_, err = apiClient.Ping(ctx)
_, err = apiClient.Ping(ctx, client.PingOptions{})
assert.NilError(c, err)
_, err = apiClient.PluginInspect(ctx, name, client.PluginInspectOptions{})