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

@@ -5,7 +5,7 @@ import (
"strings"
"testing"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
"github.com/docker/docker/integration-cli/cli"
"github.com/docker/docker/testutil"
@@ -98,7 +98,7 @@ func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
body := getInspectBody(c, "", containerID)
var inspectJSON types.ContainerJSON
var inspectJSON container.InspectResponse
err := json.Unmarshal(body, &inspectJSON)
assert.NilError(c, err)