api/types/container: move container options to client

Move the option-types to the client and in some cases create a
copy for the backend. These types are used to construct query-
args, and not marshaled to JSON, and can be replaced with functional
options in the client.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-09-04 17:41:39 +02:00
parent 291e129631
commit 4d20b6fe56
137 changed files with 743 additions and 744 deletions

View File

@@ -13,7 +13,6 @@ import (
"github.com/docker/go-connections/sockets"
"github.com/moby/moby/api/pkg/stdcopy"
"github.com/moby/moby/api/types"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/client"
"github.com/moby/moby/v2/integration-cli/cli"
"github.com/moby/moby/v2/testutil"
@@ -186,7 +185,7 @@ func (s *DockerAPISuite) TestPostContainersAttach(c *testing.T) {
cid = strings.TrimSpace(cid)
// Make sure we don't see "hello" if Logs is false
attachOpts := container.AttachOptions{
attachOpts := client.ContainerAttachOptions{
Stream: true,
Stdin: true,
Stdout: true,