|
|
@ -1307,12 +1307,20 @@ func (a adminAPIHandlers) ServerInfoHandler(w http.ResponseWriter, r *http.Reque |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
infoMsg := madmin.InfoMessage{} |
|
|
|
buckets := madmin.Buckets{} |
|
|
|
vault := madmin.Vault{} |
|
|
|
objects := madmin.Objects{} |
|
|
|
if GlobalKMS != nil { |
|
|
|
usage := madmin.Usage{} |
|
|
|
vault = fetchVaultStatus(cfg) |
|
|
|
|
|
|
|
|
|
|
|
dataUsageInfo, err := loadDataUsageFromBackend(ctx, objectAPI) |
|
|
|
|
|
|
|
if err == nil { |
|
|
|
|
|
|
|
buckets = madmin.Buckets{Count: dataUsageInfo.BucketsCount} |
|
|
|
|
|
|
|
objects = madmin.Objects{Count: dataUsageInfo.ObjectsCount} |
|
|
|
|
|
|
|
usage = madmin.Usage{Size: dataUsageInfo.ObjectsTotalSize} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
infoMsg := madmin.InfoMessage{} |
|
|
|
|
|
|
|
vault := fetchVaultStatus(cfg) |
|
|
|
|
|
|
|
|
|
|
|
ldap := madmin.LDAP{} |
|
|
|
ldap := madmin.LDAP{} |
|
|
|
if globalLDAPConfig.Enabled { |
|
|
|
if globalLDAPConfig.Enabled { |
|
|
|
ldapConn, err := globalLDAPConfig.Connect() |
|
|
|
ldapConn, err := globalLDAPConfig.Connect() |
|
|
@ -1407,9 +1415,6 @@ func (a adminAPIHandlers) ServerInfoHandler(w http.ResponseWriter, r *http.Reque |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
domain := globalDomainNames |
|
|
|
domain := globalDomainNames |
|
|
|
buckets := madmin.Buckets{} |
|
|
|
|
|
|
|
objects := madmin.Objects{} |
|
|
|
|
|
|
|
usage := madmin.Usage{} |
|
|
|
|
|
|
|
services := madmin.Services{ |
|
|
|
services := madmin.Services{ |
|
|
|
Vault: vault, |
|
|
|
Vault: vault, |
|
|
|
LDAP: ldap, |
|
|
|
LDAP: ldap, |
|
|
@ -1446,7 +1451,7 @@ func (a adminAPIHandlers) ServerInfoHandler(w http.ResponseWriter, r *http.Reque |
|
|
|
|
|
|
|
|
|
|
|
func fetchLambdaInfo(cfg config.Config) []map[string][]madmin.TargetIDStatus { |
|
|
|
func fetchLambdaInfo(cfg config.Config) []map[string][]madmin.TargetIDStatus { |
|
|
|
lambdaMap := make(map[string][]madmin.TargetIDStatus) |
|
|
|
lambdaMap := make(map[string][]madmin.TargetIDStatus) |
|
|
|
targetList, _ := notify.GetNotificationTargets(cfg, GlobalServiceDoneCh, globalRootCAs) |
|
|
|
targetList, _ := notify.GetNotificationTargets(cfg, GlobalServiceDoneCh, NewCustomHTTPTransport()) |
|
|
|
|
|
|
|
|
|
|
|
for targetID, target := range targetList.TargetMap() { |
|
|
|
for targetID, target := range targetList.TargetMap() { |
|
|
|
targetIDStatus := make(map[string]madmin.Status) |
|
|
|
targetIDStatus := make(map[string]madmin.Status) |
|
|
|