cli: drop unused state.APIResponse envelope type

The HTTP client in cli/pkg/daemon/api/client.go intentionally uses an
inline anonymous envelope with json.RawMessage for the data field so
that --json mode can passthrough the bytes verbatim, so the public
APIResponse{Data State} type defined here had zero references. Remove
it; if a strongly-typed consumer ever shows up, re-add then.

Addresses Cursor Bugbot feedback on PR #2917.

Made-with: Cursor
This commit is contained in:
Peng Peng 2026-04-19 23:16:26 +08:00
parent e436691861
commit c0ead70970

View file

@ -231,13 +231,4 @@ type NodePressure struct {
// Message is the human-readable explanation provided by kubelet.
Message string `json:"message"`
}
// APIResponse is the envelope wrapper olaresd uses for its JSON
// responses. The /system/status endpoint always returns
// {code: 200, message: "success", data: <State>}.
type APIResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data State `json:"data"`
}
}