(n *api.Node)
| 27 | } |
| 28 | |
| 29 | func 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 | |
| 44 | func onlineStr(online bool) string { |
| 45 | if online { |
no outgoing calls
no test coverage detected