mirror of
https://github.com/beclab/Olares
synced 2026-04-21 13:37:46 +00:00
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:
parent
e436691861
commit
c0ead70970
1 changed files with 1 additions and 10 deletions
|
|
@ -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"`
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue