|
9 | 9 | "fmt"
|
10 | 10 | "io"
|
11 | 11 |
|
12 |
| - "github.com/docker/docker/api/types" |
| 12 | + "github.com/docker/docker/api/types/image" |
13 | 13 | dockerRegistrySDK "github.com/docker/docker/api/types/registry"
|
14 | 14 | "github.com/docker/docker/client"
|
15 | 15 | "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
|
@@ -70,7 +70,7 @@ func TestConfigContainerNamespace(tt *acctest.TestTools, n string) resource.Test
|
70 | 70 | ctx := context.Background()
|
71 | 71 | authStr := base64.URLEncoding.EncodeToString(encodedJSON)
|
72 | 72 |
|
73 |
| - out, err := cli.ImagePull(ctx, testDockerIMG, types.ImagePullOptions{}) |
| 73 | + out, err := cli.ImagePull(ctx, testDockerIMG, image.PullOptions{}) |
74 | 74 | if err != nil {
|
75 | 75 | return fmt.Errorf("could not pull image: %v", err)
|
76 | 76 | }
|
@@ -101,7 +101,7 @@ func TestConfigContainerNamespace(tt *acctest.TestTools, n string) resource.Test
|
101 | 101 | return fmt.Errorf("could not tag image: %v", err)
|
102 | 102 | }
|
103 | 103 |
|
104 |
| - pusher, err := cli.ImagePush(ctx, scwTag, types.ImagePushOptions{RegistryAuth: authStr}) |
| 104 | + pusher, err := cli.ImagePush(ctx, scwTag, image.PushOptions{RegistryAuth: authStr}) |
105 | 105 | if err != nil {
|
106 | 106 | return fmt.Errorf("could not push image: %v", err)
|
107 | 107 | }
|
|
0 commit comments