Skip to content

Commit

Permalink
api/types: remove deprecated container-types
Browse files Browse the repository at this point in the history
These types were deprecated in v25.0, and moved to api/types/container;

This patch removes the aliases for;

- api/types.ResizeOptions (deprecated in 95b92b1)
- api/types.ContainerAttachOptions (deprecated in 30f09b4)
- api/types.ContainerCommitOptions (deprecated in 9498d89)
- api/types.ContainerRemoveOptions (deprecated in 0f77875)
- api/types.ContainerStartOptions (deprecated in 7bce33e)
- api/types.ContainerListOptions (deprecated in 9670d93)
- api/types.ContainerLogsOptions (deprecated in ebef4ef)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jan 24, 2024
1 parent 4b09bc2 commit 13f4694
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions 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].
Expand Down

0 comments on commit 13f4694

Please sign in to comment.