getDisplayCluster returns the cluster object for display. In group mode, it creates a synthetic cluster from global state. In single-profile mode, it returns the client's cluster object.
()
| 737 | // In group mode, it creates a synthetic cluster from global state. |
| 738 | // In single-profile mode, it returns the client's cluster object. |
| 739 | func (a *App) getDisplayCluster() *api.Cluster { |
| 740 | if a.isGroupMode { |
| 741 | return a.createSyntheticGroup(models.GlobalState.OriginalNodes) |
| 742 | } |
| 743 | return a.client.Cluster |
| 744 | } |
| 745 | |
| 746 | // StartBackupMonitor starts monitoring a backup task. |
| 747 | func (a *App) StartBackupMonitor(upid, nodeName string, vmid int) { |
no test coverage detected