summaryrefslogtreecommitdiff
path: root/integration/internal
diff options
context:
space:
mode:
authorJeyanthinath Muthuram <jeyanthinath10@gmail.com>2023-05-08 15:27:52 +0530
committerJeyanthinath Muthuram <jeyanthinath10@gmail.com>2023-05-08 15:27:52 +0530
commit307b09e7eb14e48a66752b036fb2a2eb53fa599c (patch)
treef8a2e154524ef388c3f3f5feb904756468649ead /integration/internal
parentc651a535588402f27d8f1a1408c794fc3289f39f (diff)
downloaddocker-307b09e7eb14e48a66752b036fb2a2eb53fa599c.tar.gz
fixing consistent aliases for OCI spec imports
Signed-off-by: Jeyanthinath Muthuram <jeyanthinath10@gmail.com>
Diffstat (limited to 'integration/internal')
-rw-r--r--integration/internal/container/container.go4
-rw-r--r--integration/internal/container/ops.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/integration/internal/container/container.go b/integration/internal/container/container.go
index 6559bd4f4a..2b45be9abd 100644
--- a/integration/internal/container/container.go
+++ b/integration/internal/container/container.go
@@ -9,7 +9,7 @@ import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/client"
- specs "github.com/opencontainers/image-spec/specs-go/v1"
+ ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"gotest.tools/v3/assert"
)
@@ -20,7 +20,7 @@ type TestContainerConfig struct {
Config *container.Config
HostConfig *container.HostConfig
NetworkingConfig *network.NetworkingConfig
- Platform *specs.Platform
+ Platform *ocispec.Platform
}
// create creates a container with the specified options
diff --git a/integration/internal/container/ops.go b/integration/internal/container/ops.go
index 18c93ea0ab..33d9777006 100644
--- a/integration/internal/container/ops.go
+++ b/integration/internal/container/ops.go
@@ -8,7 +8,7 @@ import (
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/api/types/strslice"
"github.com/docker/go-connections/nat"
- specs "github.com/opencontainers/image-spec/specs-go/v1"
+ ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
// WithName sets the name of the container
@@ -204,7 +204,7 @@ func WithExtraHost(extraHost string) func(*TestContainerConfig) {
}
// WithPlatform specifies the desired platform the image should have.
-func WithPlatform(p *specs.Platform) func(*TestContainerConfig) {
+func WithPlatform(p *ocispec.Platform) func(*TestContainerConfig) {
return func(c *TestContainerConfig) {
c.Platform = p
}