| 26 | } |
| 27 | |
| 28 | VmState VmStateFromString(const std::string& value) { |
| 29 | if (value == "starting") return VmState::kStarting; |
| 30 | if (value == "running") return VmState::kRunning; |
| 31 | if (value == "stopping") return VmState::kStopping; |
| 32 | if (value == "crashed") return VmState::kCrashed; |
| 33 | if (value == "rebooting") return VmState::kRebooting; |
| 34 | return VmState::kStopped; |
| 35 | } |
| 36 | |
| 37 | nlohmann::json ToJson(const HostForward& forward) { |
| 38 | return { |
no outgoing calls
no test coverage detected