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

Method String

internal/ui/plugins/guestlist/data.go:55–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53const selectedNodeDisplayName = "selected node"
54
55func (s sortKey) String() string {
56 switch s {
57 case sortByCPU:
58 return "CPU"
59 case sortByMemory:
60 return "Memory"
61 case sortByUptime:
62 return "Uptime"
63 case sortByName:
64 return "Name"
65 case sortByID:
66 return "ID"
67 default:
68 return "Unknown"
69 }
70}
71
72func buildGuestRows(node *api.Node) []guestRow {
73 if node == nil {

Callers 7

buildHelpTextFunction · 0.45
buildSetupGuideFunction · 0.45
formatCommandResultFunction · 0.45
runCommandWithStreamingFunction · 0.45
formatScriptInfoMethod · 0.45
updateStatsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected