mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
webapi: ServerInfo returns the list variables/values in the environnment of the Minio server (#2351)
This commit is contained in:
parent
2db51e9d61
commit
cc0d5b6fe0
@ -74,6 +74,7 @@ type ServerInfoRep struct {
|
||||
MinioMemory string
|
||||
MinioPlatform string
|
||||
MinioRuntime string
|
||||
MinioEnvVars []string
|
||||
UIVersion string `json:"uiVersion"`
|
||||
}
|
||||
|
||||
@ -98,6 +99,8 @@ func (web *webAPIHandlers) ServerInfo(r *http.Request, args *WebGenericArgs, rep
|
||||
runtime.GOOS,
|
||||
runtime.GOARCH)
|
||||
goruntime := fmt.Sprintf("Version: %s | CPUs: %s", runtime.Version(), strconv.Itoa(runtime.NumCPU()))
|
||||
|
||||
reply.MinioEnvVars = os.Environ()
|
||||
reply.MinioVersion = minioVersion
|
||||
reply.MinioMemory = mem
|
||||
reply.MinioPlatform = platform
|
||||
|
Loading…
Reference in New Issue
Block a user