Merge pull request #1594 from akimd/akim/clean
style: move definition for consistency
This commit is contained in:
commit
acba0f50ef
@ -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