client: refactor ServerVersion to return ServerVersionResult

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Austin Vazquez
2025-10-20 14:04:38 -05:00
committed by Sebastiaan van Stijn
parent 32f90ab113
commit 860307c4ea
10 changed files with 156 additions and 56 deletions

View File

@@ -43,11 +43,11 @@ func OnlyDefaultNetworks(ctx context.Context) bool {
}
func IsAmd64() bool {
return testEnv.DaemonVersion.Arch == "amd64"
return testEnv.DaemonInfo.Architecture == "amd64"
}
func NotPpc64le() bool {
return testEnv.DaemonVersion.Arch != "ppc64le"
return testEnv.DaemonInfo.Architecture != "ppc64le"
}
func UnixCli() bool {