MCPcopy
hub / github.com/CodisLabs/codis / Main

Method Main

cmd/admin/admin.go:22–37  ·  view source on GitHub ↗
(d map[string]interface{})

Source from the content-addressed store, hash-verified

20}
21
22func (t *cmdAdmin) Main(d map[string]interface{}) {
23 t.product, _ = d["--product"].(string)
24
25 switch {
26 case d["--remove-lock"].(bool):
27 t.handleRemoveLock(d)
28 case d["--config-dump"].(bool):
29 t.handleConfigDump(d)
30 case d["--config-convert"] != nil:
31 t.handleConfigConvert(d)
32 case d["--config-restore"] != nil:
33 t.handleConfigRestore(d)
34 case d["--dashboard-list"].(bool):
35 t.handleDashboardList(d)
36 }
37}
38
39func (t *cmdAdmin) newTopomClient(d map[string]interface{}) models.Client {
40 var coordinator struct {

Callers

nothing calls this directly

Calls 5

handleRemoveLockMethod · 0.95
handleConfigDumpMethod · 0.95
handleConfigConvertMethod · 0.95
handleConfigRestoreMethod · 0.95
handleDashboardListMethod · 0.95

Tested by

no test coverage detected