api/types: move Version to api/types/system

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-10-31 01:44:19 +01:00
parent f6ee11fe60
commit 12c9de37e9
11 changed files with 140 additions and 82 deletions

View File

@@ -6,7 +6,7 @@ import (
"strings"
"testing"
"github.com/moby/moby/api/types"
"github.com/moby/moby/api/types/system"
"github.com/moby/moby/client"
"github.com/moby/moby/v2/internal/testutil/request"
"gotest.tools/v3/assert"
@@ -21,7 +21,7 @@ func TestVersion(t *testing.T) {
assert.NilError(t, err)
assert.Check(t, len(version.Components) > 0, "expected at least one component in version.Components")
var engine types.ComponentVersion
var engine system.ComponentVersion
var found bool
for _, comp := range version.Components {