MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / getDisplayCluster

Method getDisplayCluster

internal/ui/components/app.go:739–744  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

737// In group mode, it creates a synthetic cluster from global state.
738// In single-profile mode, it returns the client's cluster object.
739func (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.
747func (a *App) StartBackupMonitor(upid, nodeName string, vmid int) {

Callers 2

Calls 1

createSyntheticGroupMethod · 0.95

Tested by

no test coverage detected