docs: fix reversed descriptions of version.Arch and info.Architecture

The API documentation had incorrect descriptions for these fields:

- `/version` endpoint's `Arch` field was described generically but actually
  returns the Go runtime's GOARCH value
- `/info` endpoint's `Architecture` field incorrectly stated it returns
  GOARCH, but it actually returns the OS-reported hardware architecture
  (equivalent to `uname -m`)

This commit corrects the descriptions to accurately reflect the
implementation.

Fixes #49594

Signed-off-by: majiayu000 <1835304752@qq.com>
This commit is contained in:
majiayu000
2025-12-26 14:34:05 +08:00
parent 3bd2edb375
commit 1fd2395cd3

View File

@@ -6587,7 +6587,9 @@ definitions:
example: "linux" example: "linux"
Arch: Arch:
description: | description: |
The architecture that the daemon is running on Architecture of the daemon, as returned by the Go runtime (`GOARCH`).
A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment).
type: "string" type: "string"
example: "amd64" example: "amd64"
KernelVersion: KernelVersion:
@@ -6814,10 +6816,13 @@ definitions:
example: "linux" example: "linux"
Architecture: Architecture:
description: | description: |
Hardware architecture of the host, as returned by the Go runtime Hardware architecture of the host, as returned by the operating system.
(`GOARCH`). This is equivalent to the output of `uname -m` on Linux.
A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment). Unlike `Arch` (from `/version`), this reports the machine's native
architecture, which can differ from the Go runtime architecture when
running a binary compiled for a different architecture (for example,
a 32-bit binary running on 64-bit hardware).
type: "string" type: "string"
example: "x86_64" example: "x86_64"
NCPU: NCPU: