From 13f46948dd57c9530906789de2732ab9dd13d004 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 21 Jan 2024 14:18:33 +0100 Subject: [PATCH] api/types: remove deprecated container-types These types were deprecated in v25.0, and moved to api/types/container; This patch removes the aliases for; - api/types.ResizeOptions (deprecated in 95b92b1f979c9c965f171e1763b6e6dc7397006e) - api/types.ContainerAttachOptions (deprecated in 30f09b4a1a611094878e2c3956f28dfd05be2d6d) - api/types.ContainerCommitOptions (deprecated in 9498d897ab27c94f21800d4ffb8361239280d8f0) - api/types.ContainerRemoveOptions (deprecated in 0f77875220a3a8124660c4f7ee43400ce8b873af) - api/types.ContainerStartOptions (deprecated in 7bce33eb0fe3a7e1bddfecf71888869c4b699d22) - api/types.ContainerListOptions (deprecated in 9670d9364dc1b0a2c94b5290f7f865816b34a152) - api/types.ContainerLogsOptions (deprecated in ebef4efb8824c516e70dd17c123360d20d23d7b9) Signed-off-by: Sebastiaan van Stijn --- api/types/types_deprecated.go | 38 ----------------------------------- 1 file changed, 38 deletions(-) diff --git a/api/types/types_deprecated.go b/api/types/types_deprecated.go index 67a01b6577..231a5cca46 100644 --- a/api/types/types_deprecated.go +++ b/api/types/types_deprecated.go @@ -1,47 +1,9 @@ package types import ( - "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/image" ) -// ContainerStartOptions holds parameters to start containers. -// -// Deprecated: use [container.StartOptions]. -type ContainerStartOptions = container.StartOptions - -// ResizeOptions holds parameters to resize a TTY. -// It can be used to resize container TTYs and -// exec process TTYs too. -// -// Deprecated: use [container.ResizeOptions]. -type ResizeOptions = container.ResizeOptions - -// ContainerAttachOptions holds parameters to attach to a container. -// -// Deprecated: use [container.AttachOptions]. -type ContainerAttachOptions = container.AttachOptions - -// ContainerCommitOptions holds parameters to commit changes into a container. -// -// Deprecated: use [container.CommitOptions]. -type ContainerCommitOptions = container.CommitOptions - -// ContainerListOptions holds parameters to list containers with. -// -// Deprecated: use [container.ListOptions]. -type ContainerListOptions = container.ListOptions - -// ContainerLogsOptions holds parameters to filter logs with. -// -// Deprecated: use [container.LogsOptions]. -type ContainerLogsOptions = container.LogsOptions - -// ContainerRemoveOptions holds parameters to remove containers. -// -// Deprecated: use [container.RemoveOptions]. -type ContainerRemoveOptions = container.RemoveOptions - // ImageImportOptions holds information to import images from the client host. // // Deprecated: use [image.ImportOptions].