@@ -22,50 +22,43 @@ import (
22
22
23
23
// endpoints definition
24
24
var (
25
- configuration = "/settings"
26
- users = "/users"
27
- usersDetail = "/users/:userName+"
28
- groups = "/groups"
29
- iamPolicies = "/policies"
30
- policiesDetail = "/policies/:policyName"
31
- dashboard = "/dashboard"
32
- metrics = "/metrics"
33
- profiling = "/profiling"
34
- buckets = "/buckets"
35
- bucketsDetail = "/buckets/:bucketName"
36
- bucketsDetailSummary = "/buckets/:bucketName/summary"
37
- bucketsDetailEvents = "/buckets/:bucketName/events"
38
- bucketsDetailReplication = "/buckets/:bucketName/replication"
39
- bucketsDetailLifecycle = "/buckets/:bucketName/lifecycle"
40
- bucketsDetailAccess = "/buckets/:bucketName/access"
41
- bucketsDetailAccessPolicies = "/buckets/:bucketName/access/policies"
42
- bucketsDetailAccessUsers = "/buckets/:bucketName/access/users"
43
- serviceAccounts = "/account"
44
- changePassword = "/account/change-password"
45
- tenants = "/tenants"
46
- tenantsDetail = "/namespaces/:tenantNamespace/tenants/:tenantName"
47
- tenantHop = "/namespaces/:tenantNamespace/tenants/:tenantName/hop"
48
- podsDetail = "/namespaces/:tenantNamespace/tenants/:tenantName/pods/:podName"
49
- tenantsDetailSummary = "/namespaces/:tenantNamespace/tenants/:tenantName/summary"
50
- tenantsDetailMetrics = "/namespaces/:tenantNamespace/tenants/:tenantName/metrics"
51
- tenantsDetailPods = "/namespaces/:tenantNamespace/tenants/:tenantName/pods"
52
- tenantsDetailPools = "/namespaces/:tenantNamespace/tenants/:tenantName/pools"
53
- tenantsDetailLicense = "/namespaces/:tenantNamespace/tenants/:tenantName/license"
54
- tenantsDetailSecurity = "/namespaces/:tenantNamespace/tenants/:tenantName/security"
55
- storage = "/storage"
56
- storageVolumes = "/storage/volumes"
57
- storageDrives = "/storage/drives"
58
- remoteBuckets = "/remote-buckets"
59
- replication = "/replication"
60
- objectBrowser = "/object-browser/:bucket/*"
61
- objectBrowserBucket = "/object-browser/:bucket"
62
- mainObjectBrowser = "/object-browser"
63
- license = "/license"
64
- watch = "/watch"
65
- heal = "/heal"
66
- trace = "/trace"
67
- logs = "/logs"
68
- healthInfo = "/health-info"
25
+ configuration = "/settings"
26
+ users = "/users"
27
+ usersDetail = "/users/:userName+"
28
+ groups = "/groups"
29
+ iamPolicies = "/policies"
30
+ policiesDetail = "/policies/:policyName"
31
+ dashboard = "/dashboard"
32
+ metrics = "/metrics"
33
+ profiling = "/profiling"
34
+ buckets = "/buckets"
35
+ bucketsDetail = "/buckets/*"
36
+ serviceAccounts = "/account"
37
+ changePassword = "/account/change-password"
38
+ tenants = "/tenants"
39
+ tenantsDetail = "/namespaces/:tenantNamespace/tenants/:tenantName"
40
+ tenantHop = "/namespaces/:tenantNamespace/tenants/:tenantName/hop"
41
+ podsDetail = "/namespaces/:tenantNamespace/tenants/:tenantName/pods/:podName"
42
+ tenantsDetailSummary = "/namespaces/:tenantNamespace/tenants/:tenantName/summary"
43
+ tenantsDetailMetrics = "/namespaces/:tenantNamespace/tenants/:tenantName/metrics"
44
+ tenantsDetailPods = "/namespaces/:tenantNamespace/tenants/:tenantName/pods"
45
+ tenantsDetailPools = "/namespaces/:tenantNamespace/tenants/:tenantName/pools"
46
+ tenantsDetailLicense = "/namespaces/:tenantNamespace/tenants/:tenantName/license"
47
+ tenantsDetailSecurity = "/namespaces/:tenantNamespace/tenants/:tenantName/security"
48
+ storage = "/storage"
49
+ storageVolumes = "/storage/volumes"
50
+ storageDrives = "/storage/drives"
51
+ remoteBuckets = "/remote-buckets"
52
+ replication = "/replication"
53
+ objectBrowser = "/object-browser/:bucket/*"
54
+ objectBrowserBucket = "/object-browser/:bucket"
55
+ mainObjectBrowser = "/object-browser"
56
+ license = "/license"
57
+ watch = "/watch"
58
+ heal = "/heal"
59
+ trace = "/trace"
60
+ logs = "/logs"
61
+ healthInfo = "/health-info"
69
62
)
70
63
71
64
type ConfigurationActionSet struct {
@@ -288,37 +281,30 @@ var displayRules = map[string]func() bool{
288
281
289
282
// endpointRules contains the mapping between endpoints and ActionSets, additional rules can be added here
290
283
var endpointRules = map [string ]ConfigurationActionSet {
291
- configuration : configurationActionSet ,
292
- users : usersActionSet ,
293
- usersDetail : usersActionSet ,
294
- groups : groupsActionSet ,
295
- iamPolicies : iamPoliciesActionSet ,
296
- policiesDetail : iamPoliciesActionSet ,
297
- dashboard : dashboardActionSet ,
298
- metrics : dashboardActionSet ,
299
- profiling : profilingActionSet ,
300
- buckets : bucketsActionSet ,
301
- bucketsDetail : bucketsActionSet ,
302
- bucketsDetailSummary : bucketsActionSet ,
303
- bucketsDetailEvents : bucketsActionSet ,
304
- bucketsDetailReplication : bucketsActionSet ,
305
- bucketsDetailLifecycle : bucketsActionSet ,
306
- bucketsDetailAccess : bucketsActionSet ,
307
- bucketsDetailAccessPolicies : bucketsActionSet ,
308
- bucketsDetailAccessUsers : bucketsActionSet ,
309
- serviceAccounts : serviceAccountsActionSet ,
310
- changePassword : changePasswordActionSet ,
311
- remoteBuckets : remoteBucketsActionSet ,
312
- replication : replicationActionSet ,
313
- objectBrowser : objectBrowserActionSet ,
314
- mainObjectBrowser : objectBrowserActionSet ,
315
- objectBrowserBucket : objectBrowserActionSet ,
316
- license : licenseActionSet ,
317
- watch : watchActionSet ,
318
- heal : healActionSet ,
319
- trace : traceActionSet ,
320
- logs : logsActionSet ,
321
- healthInfo : healthInfoActionSet ,
284
+ configuration : configurationActionSet ,
285
+ users : usersActionSet ,
286
+ usersDetail : usersActionSet ,
287
+ groups : groupsActionSet ,
288
+ iamPolicies : iamPoliciesActionSet ,
289
+ policiesDetail : iamPoliciesActionSet ,
290
+ dashboard : dashboardActionSet ,
291
+ metrics : dashboardActionSet ,
292
+ profiling : profilingActionSet ,
293
+ buckets : bucketsActionSet ,
294
+ bucketsDetail : bucketsActionSet ,
295
+ serviceAccounts : serviceAccountsActionSet ,
296
+ changePassword : changePasswordActionSet ,
297
+ remoteBuckets : remoteBucketsActionSet ,
298
+ replication : replicationActionSet ,
299
+ objectBrowser : objectBrowserActionSet ,
300
+ mainObjectBrowser : objectBrowserActionSet ,
301
+ objectBrowserBucket : objectBrowserActionSet ,
302
+ license : licenseActionSet ,
303
+ watch : watchActionSet ,
304
+ heal : healActionSet ,
305
+ trace : traceActionSet ,
306
+ logs : logsActionSet ,
307
+ healthInfo : healthInfoActionSet ,
322
308
}
323
309
324
310
// operatorRules contains the mapping between endpoints and ActionSets for operator only mode
0 commit comments