Bring trace, watch, heal and logs back to user console UI (#491)
This commit is contained in:
@@ -38,7 +38,6 @@ import (
|
||||
|
||||
"github.com/minio/console/models"
|
||||
"github.com/minio/console/restapi/operations/admin_api"
|
||||
"github.com/minio/console/restapi/operations/operator_api"
|
||||
"github.com/minio/console/restapi/operations/user_api"
|
||||
)
|
||||
|
||||
@@ -227,9 +226,6 @@ func NewConsoleAPI(spec *loads.Document) *ConsoleAPI {
|
||||
AdminAPINotificationEndpointListHandler: admin_api.NotificationEndpointListHandlerFunc(func(params admin_api.NotificationEndpointListParams, principal *models.Principal) middleware.Responder {
|
||||
return middleware.NotImplemented("operation admin_api.NotificationEndpointList has not yet been implemented")
|
||||
}),
|
||||
OperatorAPIOperatorListBucketsHandler: operator_api.OperatorListBucketsHandlerFunc(func(params operator_api.OperatorListBucketsParams, principal *models.Principal) middleware.Responder {
|
||||
return middleware.NotImplemented("operation operator_api.OperatorListBuckets has not yet been implemented")
|
||||
}),
|
||||
AdminAPIPolicyInfoHandler: admin_api.PolicyInfoHandlerFunc(func(params admin_api.PolicyInfoParams, principal *models.Principal) middleware.Responder {
|
||||
return middleware.NotImplemented("operation admin_api.PolicyInfo has not yet been implemented")
|
||||
}),
|
||||
@@ -477,8 +473,6 @@ type ConsoleAPI struct {
|
||||
UserAPIMakeBucketHandler user_api.MakeBucketHandler
|
||||
// AdminAPINotificationEndpointListHandler sets the operation handler for the notification endpoint list operation
|
||||
AdminAPINotificationEndpointListHandler admin_api.NotificationEndpointListHandler
|
||||
// OperatorAPIOperatorListBucketsHandler sets the operation handler for the operator list buckets operation
|
||||
OperatorAPIOperatorListBucketsHandler operator_api.OperatorListBucketsHandler
|
||||
// AdminAPIPolicyInfoHandler sets the operation handler for the policy info operation
|
||||
AdminAPIPolicyInfoHandler admin_api.PolicyInfoHandler
|
||||
// UserAPIPostBucketsBucketNameObjectsUploadHandler sets the operation handler for the post buckets bucket name objects upload operation
|
||||
@@ -775,9 +769,6 @@ func (o *ConsoleAPI) Validate() error {
|
||||
if o.AdminAPINotificationEndpointListHandler == nil {
|
||||
unregistered = append(unregistered, "admin_api.NotificationEndpointListHandler")
|
||||
}
|
||||
if o.OperatorAPIOperatorListBucketsHandler == nil {
|
||||
unregistered = append(unregistered, "operator_api.OperatorListBucketsHandler")
|
||||
}
|
||||
if o.AdminAPIPolicyInfoHandler == nil {
|
||||
unregistered = append(unregistered, "admin_api.PolicyInfoHandler")
|
||||
}
|
||||
@@ -1186,10 +1177,6 @@ func (o *ConsoleAPI) initHandlerCache() {
|
||||
if o.handlers["GET"] == nil {
|
||||
o.handlers["GET"] = make(map[string]http.Handler)
|
||||
}
|
||||
o.handlers["GET"]["/operator/{namespace}/{tenant}/buckets"] = operator_api.NewOperatorListBuckets(o.context, o.OperatorAPIOperatorListBucketsHandler)
|
||||
if o.handlers["GET"] == nil {
|
||||
o.handlers["GET"] = make(map[string]http.Handler)
|
||||
}
|
||||
o.handlers["GET"]["/policies/{name}"] = admin_api.NewPolicyInfo(o.context, o.AdminAPIPolicyInfoHandler)
|
||||
if o.handlers["POST"] == nil {
|
||||
o.handlers["POST"] = make(map[string]http.Handler)
|
||||
|
||||
Reference in New Issue
Block a user