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

Function nodeToOutput

internal/cli/nodes.go:29–42  ·  view source on GitHub ↗
(n *api.Node)

Source from the content-addressed store, hash-verified

27}
28
29func nodeToOutput(n *api.Node) nodeOutput {
30 return nodeOutput{
31 Name: n.Name,
32 IP: n.IP,
33 Online: n.Online,
34 CPUUsage: n.CPUUsage,
35 MemoryUsed: n.MemoryUsed,
36 MemoryTotal: n.MemoryTotal,
37 Uptime: n.Uptime,
38 Version: n.Version,
39 KernelVersion: n.KernelVersion,
40 SourceProfile: n.SourceProfile,
41 }
42}
43
44func onlineStr(online bool) string {
45 if online {

Callers 2

runNodesListFunction · 0.85
runNodesShowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected