Skip to content

Commit 7f28e79

Browse files
committed
move iface to correct file
1 parent 268f519 commit 7f28e79

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

dockerutil/client.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ import (
1313
"golang.org/x/xerrors"
1414
)
1515

16+
type DockerClient interface {
17+
dockerclient.SystemAPIClient
18+
dockerclient.ContainerAPIClient
19+
dockerclient.ImageAPIClient
20+
}
21+
1622
type clientKey struct{}
1723

1824
// WithClient sets the provided DockerClient on the context.

dockerutil/container.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"time"
1111

1212
"github.com/docker/docker/api/types/container"
13-
dockerclient "github.com/docker/docker/client"
1413
"github.com/spf13/afero"
1514
"golang.org/x/xerrors"
1615

@@ -25,12 +24,6 @@ const (
2524
DefaultCPUPeriod uint64 = 1e5
2625
)
2726

28-
type DockerClient interface {
29-
dockerclient.SystemAPIClient
30-
dockerclient.ContainerAPIClient
31-
dockerclient.ImageAPIClient
32-
}
33-
3427
type ContainerConfig struct {
3528
Log slog.Logger
3629
Mounts []xunix.Mount

0 commit comments

Comments
 (0)