跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

hyperv_instance.go

23 行 · 1.0 KB历史下载
1package guestos
2
3// HyperVInspection describes only the VM explicitly requested by its caller.
4// A matched VM is not automatically owned by the current Cage profile.
5type HyperVInspection struct {
6 Inspection
7 VMID string `json:"vmId"`
8 Lookup string `json:"lookup"` // found, not-found (for this user), or unavailable
9 LookupDetail string `json:"lookupDetail,omitempty"`
10 VM *HyperVConfiguration `json:"vm,omitempty"`
11}
12
13type HyperVConfiguration struct {
14 State string `json:"state"`
15 Generation int `json:"generation"`
16 DiskCount int `json:"diskCount"`
17 SingleLocalVHDX *bool `json:"singleLocalVhdx"` // null if local disk metadata was unreadable
18 DiskType string `json:"diskType,omitempty"`
19 SecureBoot bool `json:"secureBoot"`
20 SecureBootTemplate string `json:"secureBootTemplate,omitempty"`
21 VirtualTPM bool `json:"virtualTpm"`
22 NetworkAdapterCount int `json:"networkAdapterCount"`
23}