diff --git a/container.go b/container.go index fb4b29435..b46a252b2 100644 --- a/container.go +++ b/container.go @@ -17,9 +17,6 @@ import ( "github.com/pkg/errors" ) -// DeleteOpts allows the caller to set options for the deletion of a container -type DeleteOpts func(context.Context, *Client, containers.Container) error - // Container is a metadata object for container resources and task creation type Container interface { // ID identifies the container diff --git a/container_opts.go b/container_opts.go index 40d922a64..b8d334638 100644 --- a/container_opts.go +++ b/container_opts.go @@ -12,6 +12,9 @@ import ( "github.com/pkg/errors" ) +// DeleteOpts allows the caller to set options for the deletion of a container +type DeleteOpts func(ctx context.Context, client *Client, c containers.Container) error + // NewContainerOpts allows the caller to set additional options when creating a container type NewContainerOpts func(ctx context.Context, client *Client, c *containers.Container) error