chore: remove unused API response types
Remove ChartData, Dataset, ConfigImportResponse, ConfigExportResponse, InstallScriptResponse, ErrorResponse, and SuccessResponse types that were defined but never used in the codebase.
This commit is contained in:
parent
4f6c24802c
commit
93723d95c6
1 changed files with 0 additions and 45 deletions
|
|
@ -36,19 +36,6 @@ type VersionResponse struct {
|
||||||
ContainerId string `json:"containerId,omitempty"`
|
ContainerId string `json:"containerId,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrorResponse represents an error response
|
|
||||||
type ErrorResponse struct {
|
|
||||||
Error string `json:"error"`
|
|
||||||
Message string `json:"message,omitempty"`
|
|
||||||
Code int `json:"code,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// SuccessResponse represents a generic success response
|
|
||||||
type SuccessResponse struct {
|
|
||||||
Success bool `json:"success"`
|
|
||||||
Message string `json:"message,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// StateResponse represents the full state response
|
// StateResponse represents the full state response
|
||||||
type StateResponse struct {
|
type StateResponse struct {
|
||||||
Nodes []models.Node `json:"nodes"`
|
Nodes []models.Node `json:"nodes"`
|
||||||
|
|
@ -113,38 +100,6 @@ type MetricPoint struct {
|
||||||
Value float64 `json:"value"`
|
Value float64 `json:"value"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ChartData represents data for a single chart
|
|
||||||
type ChartData struct {
|
|
||||||
Labels []string `json:"labels"`
|
|
||||||
Datasets []Dataset `json:"datasets"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dataset represents a chart dataset
|
|
||||||
type Dataset struct {
|
|
||||||
Label string `json:"label"`
|
|
||||||
Data []float64 `json:"data"`
|
|
||||||
BackgroundColor string `json:"backgroundColor,omitempty"`
|
|
||||||
BorderColor string `json:"borderColor,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// ConfigImportResponse represents import response
|
|
||||||
type ConfigImportResponse struct {
|
|
||||||
Status string `json:"status"`
|
|
||||||
Message string `json:"message"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// ConfigExportResponse represents export response
|
|
||||||
type ConfigExportResponse struct {
|
|
||||||
Status string `json:"status"`
|
|
||||||
Data string `json:"data"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// InstallScriptResponse represents install script response
|
|
||||||
type InstallScriptResponse struct {
|
|
||||||
URL string `json:"url"`
|
|
||||||
Command string `json:"command"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgentVersionResponse represents Docker agent version information
|
// AgentVersionResponse represents Docker agent version information
|
||||||
type AgentVersionResponse struct {
|
type AgentVersionResponse struct {
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue