跳到主要内容

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

浏览文件

ignition_schema.go

248 行 · 7.2 KB历史下载
1package e2eutils
2
3// Taken from https://github.com/coreos/ignition/blob/master/config/v3_2/types/schema.go
4
5// generated by "schematyper --package=types config/v3_2/schema/ignition.json -o config/v3_2/types/schema.go --root-type=Config" -- DO NOT EDIT
6
7type Clevis struct {
8 Custom *Custom `json:"custom,omitempty"`
9 Tang []Tang `json:"tang,omitempty"`
10 Threshold *int `json:"threshold,omitempty"`
11 Tpm2 *bool `json:"tpm2,omitempty"`
12}
13
14type Config struct {
15 Ignition Ignition `json:"ignition"`
16 Passwd Passwd `json:"passwd,omitempty"`
17 Storage Storage `json:"storage,omitempty"`
18 Systemd Systemd `json:"systemd,omitempty"`
19}
20
21type Custom struct {
22 Config string `json:"config"`
23 NeedsNetwork *bool `json:"needsNetwork,omitempty"`
24 Pin string `json:"pin"`
25}
26
27type Device string
28
29type Directory struct {
30 Node
31 DirectoryEmbedded1
32}
33
34type DirectoryEmbedded1 struct {
35 Mode *int `json:"mode,omitempty"`
36}
37
38type Disk struct {
39 Device string `json:"device"`
40 Partitions []Partition `json:"partitions,omitempty"`
41 WipeTable *bool `json:"wipeTable,omitempty"`
42}
43
44type Dropin struct {
45 Contents *string `json:"contents,omitempty"`
46 Name string `json:"name"`
47}
48
49type File struct {
50 Node
51 FileEmbedded1
52}
53
54type FileEmbedded1 struct {
55 Append []Resource `json:"append,omitempty"`
56 Contents Resource `json:"contents,omitempty"`
57 Mode *int `json:"mode,omitempty"`
58}
59
60type Filesystem struct {
61 Device string `json:"device"`
62 Format *string `json:"format,omitempty"`
63 Label *string `json:"label,omitempty"`
64 MountOptions []MountOption `json:"mountOptions,omitempty"`
65 Options []FilesystemOption `json:"options,omitempty"`
66 Path *string `json:"path,omitempty"`
67 UUID *string `json:"uuid,omitempty"`
68 WipeFilesystem *bool `json:"wipeFilesystem,omitempty"`
69}
70
71type FilesystemOption string
72
73type Group string
74
75type HTTPHeader struct {
76 Name string `json:"name"`
77 Value *string `json:"value,omitempty"`
78}
79
80type HTTPHeaders []HTTPHeader
81
82type Ignition struct {
83 Config IgnitionConfig `json:"config,omitempty"`
84 Proxy Proxy `json:"proxy,omitempty"`
85 Security Security `json:"security,omitempty"`
86 Timeouts Timeouts `json:"timeouts,omitempty"`
87 Version string `json:"version,omitempty"`
88}
89
90type IgnitionConfig struct {
91 Merge []Resource `json:"merge,omitempty"`
92 Replace Resource `json:"replace,omitempty"`
93}
94
95type Link struct {
96 Node
97 LinkEmbedded1
98}
99
100type LinkEmbedded1 struct {
101 Hard *bool `json:"hard,omitempty"`
102 Target string `json:"target"`
103}
104
105type Luks struct {
106 Clevis *Clevis `json:"clevis,omitempty"`
107 Device *string `json:"device,omitempty"`
108 KeyFile Resource `json:"keyFile,omitempty"`
109 Label *string `json:"label,omitempty"`
110 Name string `json:"name"`
111 Options []LuksOption `json:"options,omitempty"`
112 UUID *string `json:"uuid,omitempty"`
113 WipeVolume *bool `json:"wipeVolume,omitempty"`
114}
115
116type LuksOption string
117
118type MountOption string
119
120type NoProxyItem string
121
122type Node struct {
123 Group NodeGroup `json:"group,omitempty"`
124 Overwrite *bool `json:"overwrite,omitempty"`
125 Path string `json:"path"`
126 User NodeUser `json:"user,omitempty"`
127}
128
129type NodeGroup struct {
130 ID *int `json:"id,omitempty"`
131 Name *string `json:"name,omitempty"`
132}
133
134type NodeUser struct {
135 ID *int `json:"id,omitempty"`
136 Name *string `json:"name,omitempty"`
137}
138
139type Partition struct {
140 GUID *string `json:"guid,omitempty"`
141 Label *string `json:"label,omitempty"`
142 Number int `json:"number,omitempty"`
143 Resize *bool `json:"resize,omitempty"`
144 ShouldExist *bool `json:"shouldExist,omitempty"`
145 SizeMiB *int `json:"sizeMiB,omitempty"`
146 StartMiB *int `json:"startMiB,omitempty"`
147 TypeGUID *string `json:"typeGuid,omitempty"`
148 WipePartitionEntry *bool `json:"wipePartitionEntry,omitempty"`
149}
150
151type Passwd struct {
152 Groups []PasswdGroup `json:"groups,omitempty"`
153 Users []PasswdUser `json:"users,omitempty"`
154}
155
156type PasswdGroup struct {
157 Gid *int `json:"gid,omitempty"`
158 Name string `json:"name"`
159 PasswordHash *string `json:"passwordHash,omitempty"`
160 ShouldExist *bool `json:"shouldExist,omitempty"`
161 System *bool `json:"system,omitempty"`
162}
163
164type PasswdUser struct {
165 Gecos *string `json:"gecos,omitempty"`
166 Groups []Group `json:"groups,omitempty"`
167 HomeDir *string `json:"homeDir,omitempty"`
168 Name string `json:"name"`
169 NoCreateHome *bool `json:"noCreateHome,omitempty"`
170 NoLogInit *bool `json:"noLogInit,omitempty"`
171 NoUserGroup *bool `json:"noUserGroup,omitempty"`
172 PasswordHash *string `json:"passwordHash,omitempty"`
173 PrimaryGroup *string `json:"primaryGroup,omitempty"`
174 SSHAuthorizedKeys []SSHAuthorizedKey `json:"sshAuthorizedKeys,omitempty"`
175 Shell *string `json:"shell,omitempty"`
176 ShouldExist *bool `json:"shouldExist,omitempty"`
177 System *bool `json:"system,omitempty"`
178 UID *int `json:"uid,omitempty"`
179}
180
181type Proxy struct {
182 HTTPProxy *string `json:"httpProxy,omitempty"`
183 HTTPSProxy *string `json:"httpsProxy,omitempty"`
184 NoProxy []NoProxyItem `json:"noProxy,omitempty"`
185}
186
187type Raid struct {
188 Devices []Device `json:"devices"`
189 Level string `json:"level"`
190 Name string `json:"name"`
191 Options []RaidOption `json:"options,omitempty"`
192 Spares *int `json:"spares,omitempty"`
193}
194
195type RaidOption string
196
197type Resource struct {
198 Compression *string `json:"compression,omitempty"`
199 HTTPHeaders HTTPHeaders `json:"httpHeaders,omitempty"`
200 Source *string `json:"source,omitempty"`
201 Verification Verification `json:"verification,omitempty"`
202}
203
204type SSHAuthorizedKey string
205
206type Security struct {
207 TLS TLS `json:"tls,omitempty"`
208}
209
210type Storage struct {
211 Directories []Directory `json:"directories,omitempty"`
212 Disks []Disk `json:"disks,omitempty"`
213 Files []File `json:"files,omitempty"`
214 Filesystems []Filesystem `json:"filesystems,omitempty"`
215 Links []Link `json:"links,omitempty"`
216 Luks []Luks `json:"luks,omitempty"`
217 Raid []Raid `json:"raid,omitempty"`
218}
219
220type Systemd struct {
221 Units []Unit `json:"units,omitempty"`
222}
223
224type TLS struct {
225 CertificateAuthorities []Resource `json:"certificateAuthorities,omitempty"`
226}
227
228type Tang struct {
229 Thumbprint *string `json:"thumbprint,omitempty"`
230 URL string `json:"url,omitempty"`
231}
232
233type Timeouts struct {
234 HTTPResponseHeaders *int `json:"httpResponseHeaders,omitempty"`
235 HTTPTotal *int `json:"httpTotal,omitempty"`
236}
237
238type Unit struct {
239 Contents *string `json:"contents,omitempty"`
240 Dropins []Dropin `json:"dropins,omitempty"`
241 Enabled *bool `json:"enabled,omitempty"`
242 Mask *bool `json:"mask,omitempty"`
243 Name string `json:"name"`
244}
245
246type Verification struct {
247 Hash *string `json:"hash,omitempty"`
248}