File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ import (
13
13
"golang.org/x/xerrors"
14
14
)
15
15
16
+ type DockerClient interface {
17
+ dockerclient.SystemAPIClient
18
+ dockerclient.ContainerAPIClient
19
+ dockerclient.ImageAPIClient
20
+ }
21
+
16
22
type clientKey struct {}
17
23
18
24
// WithClient sets the provided DockerClient on the context.
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import (
10
10
"time"
11
11
12
12
"github.com/docker/docker/api/types/container"
13
- dockerclient "github.com/docker/docker/client"
14
13
"github.com/spf13/afero"
15
14
"golang.org/x/xerrors"
16
15
@@ -25,12 +24,6 @@ const (
25
24
DefaultCPUPeriod uint64 = 1e5
26
25
)
27
26
28
- type DockerClient interface {
29
- dockerclient.SystemAPIClient
30
- dockerclient.ContainerAPIClient
31
- dockerclient.ImageAPIClient
32
- }
33
-
34
27
type ContainerConfig struct {
35
28
Log slog.Logger
36
29
Mounts []xunix.Mount
You can’t perform that action at this time.
0 commit comments