(d map[string]interface{})
| 20 | } |
| 21 | |
| 22 | func (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 | |
| 39 | func (t *cmdAdmin) newTopomClient(d map[string]interface{}) models.Client { |
| 40 | var coordinator struct { |
nothing calls this directly
no test coverage detected