1
0
mirror of https://github.com/moby/moby.git synced 2025-07-29 07:21:35 +03:00

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

This moves the `ContainerJSONBase`, `ContainerJSON` and `ContainerNode`
types to the api/types/container package and deprecates the old location.

- `ContainerJSONBase` was renamed to `InspectBase`
- `ContainerJSON` was rnamed to `InspectResponse`

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-06-26 00:46:34 +02:00
parent 05b0e653dd
commit 1abc8f6158
18 changed files with 120 additions and 97 deletions

View File

@ -14,7 +14,7 @@ import (
"testing"
"time"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/integration-cli/cli"
"github.com/docker/docker/integration-cli/daemon"
@ -1017,7 +1017,7 @@ func (s *DockerCLINetworkSuite) TestInspectAPIMultipleNetworks(c *testing.T) {
// Current API version (API v1.21 and up)
body := getInspectBody(c, "", id)
var inspectCurrent types.ContainerJSON
var inspectCurrent container.InspectResponse
err := json.Unmarshal(body, &inspectCurrent)
assert.NilError(c, err)
assert.Equal(c, len(inspectCurrent.NetworkSettings.Networks), 3)