From 15ff9d32355b73b2f438282de6fc4b63c97f1d77 Mon Sep 17 00:00:00 2001 From: Shireesh Anjal Date: Mon, 6 Jan 2025 10:49:24 +0530 Subject: [PATCH] Use string field 'edition' instead of bool --- health.go | 2 +- info-commands.go | 2 +- register.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/health.go b/health.go index 5913063..db55364 100644 --- a/health.go +++ b/health.go @@ -996,7 +996,7 @@ type ServerInfo struct { RuntimeVersion string `json:"runtime_version"` GCStats *GCStats `json:"gc_stats,omitempty"` MinioEnvVars map[string]string `json:"minio_env_vars,omitempty"` - IsAIStor *bool `json:"is_aistor,omitempty"` + Edition string `json:"edition,omitempty"` } // MinioInfo contains MinIO server and object storage information. diff --git a/info-commands.go b/info-commands.go index ecb89fc..4f2592b 100644 --- a/info-commands.go +++ b/info-commands.go @@ -423,7 +423,7 @@ type ServerProperties struct { RuntimeVersion string `json:"runtime_version,omitempty"` GCStats *GCStats `json:"gc_stats,omitempty"` MinioEnvVars map[string]string `json:"minio_env_vars,omitempty"` - IsAIStor *bool `json:"is_aistor,omitempty"` + Edition string `json:"edition,omitempty"` } // MemStats is strip down version of runtime.MemStats containing memory stats of MinIO server. diff --git a/register.go b/register.go index 462fa2f..a371bbb 100644 --- a/register.go +++ b/register.go @@ -44,7 +44,7 @@ type ClusterInfo struct { NoOfObjects uint64 `json:"no_of_objects"` TotalDriveSpace uint64 `json:"total_drive_space"` UsedDriveSpace uint64 `json:"used_drive_space"` - IsAIStor *bool `json:"is_aistor,omitempty"` + Edition string `json:"edition,omitempty"` } // SubnetLoginReq - JSON payload of the SUBNET login api