style: move definition for consistency
Signed-off-by: Akim Demaille <akim.demaille@docker.com>
This commit is contained in:
parent
f6d88927d5
commit
8ceeeed4ae
@ -17,9 +17,6 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"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
|
// Container is a metadata object for container resources and task creation
|
||||||
type Container interface {
|
type Container interface {
|
||||||
// ID identifies the container
|
// ID identifies the container
|
||||||
|
@ -12,6 +12,9 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"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
|
// NewContainerOpts allows the caller to set additional options when creating a container
|
||||||
type NewContainerOpts func(ctx context.Context, client *Client, c *containers.Container) error
|
type NewContainerOpts func(ctx context.Context, client *Client, c *containers.Container) error
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user