-
Notifications
You must be signed in to change notification settings - Fork 16
/
schema.go
221 lines (182 loc) · 6.39 KB
/
schema.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
package types
// generated by "schematyper --package=types schema/ignition.json -o config/types/schema.go --root-type=Config" -- DO NOT EDIT
type Config struct {
Ignition Ignition `json:"ignition"`
Networkd Networkd `json:"networkd,omitempty"`
Passwd Passwd `json:"passwd,omitempty"`
Storage Storage `json:"storage,omitempty"`
Systemd Systemd `json:"systemd,omitempty"`
}
type ConfigReference struct {
Source string `json:"source,omitempty"`
Verification Verification `json:"verification,omitempty"`
}
type Create struct {
Force bool `json:"force,omitempty"`
Options []CreateOption `json:"options,omitempty"`
}
type CreateOption string
type Device string
type Directory struct {
Node
DirectoryEmbedded1
}
type DirectoryEmbedded1 struct {
Mode int `json:"mode,omitempty"`
}
type Disk struct {
Device string `json:"device,omitempty"`
Partitions []Partition `json:"partitions,omitempty"`
WipeTable bool `json:"wipeTable,omitempty"`
}
type Dropin struct {
Contents string `json:"contents,omitempty"`
Name string `json:"name,omitempty"`
}
type File struct {
Node
FileEmbedded1
}
type FileContents struct {
Compression string `json:"compression,omitempty"`
Source string `json:"source,omitempty"`
Verification Verification `json:"verification,omitempty"`
}
type FileEmbedded1 struct {
Contents FileContents `json:"contents,omitempty"`
Mode int `json:"mode,omitempty"`
}
type Filesystem struct {
Mount *Mount `json:"mount,omitempty"`
Name string `json:"name,omitempty"`
Path *string `json:"path,omitempty"`
}
type Ignition struct {
Config IgnitionConfig `json:"config,omitempty"`
Timeouts Timeouts `json:"timeouts,omitempty"`
Version string `json:"version,omitempty"`
}
type IgnitionConfig struct {
Append []ConfigReference `json:"append,omitempty"`
Replace *ConfigReference `json:"replace,omitempty"`
}
type Link struct {
Node
LinkEmbedded1
}
type LinkEmbedded1 struct {
Hard bool `json:"hard,omitempty"`
Target string `json:"target,omitempty"`
}
type Mount struct {
Create *Create `json:"create,omitempty"`
Device string `json:"device,omitempty"`
Format string `json:"format,omitempty"`
Label *string `json:"label,omitempty"`
Options []MountOption `json:"options,omitempty"`
UUID *string `json:"uuid,omitempty"`
WipeFilesystem bool `json:"wipeFilesystem,omitempty"`
}
type MountOption string
type Networkd struct {
Units []Networkdunit `json:"units,omitempty"`
}
type Networkdunit struct {
Contents string `json:"contents,omitempty"`
Name string `json:"name,omitempty"`
}
type Node struct {
Filesystem string `json:"filesystem,omitempty"`
Group NodeGroup `json:"group,omitempty"`
Path string `json:"path,omitempty"`
User NodeUser `json:"user,omitempty"`
}
type NodeGroup struct {
ID *int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
type NodeUser struct {
ID *int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
type Partition struct {
GUID string `json:"guid,omitempty"`
Label string `json:"label,omitempty"`
Number int `json:"number,omitempty"`
Size int `json:"size,omitempty"`
Start int `json:"start,omitempty"`
TypeGUID string `json:"typeGuid,omitempty"`
}
type Passwd struct {
Groups []PasswdGroup `json:"groups,omitempty"`
Users []PasswdUser `json:"users,omitempty"`
}
type PasswdGroup struct {
Gid *int `json:"gid,omitempty"`
Name string `json:"name,omitempty"`
PasswordHash string `json:"passwordHash,omitempty"`
System bool `json:"system,omitempty"`
}
type PasswdUser struct {
Create *Usercreate `json:"create,omitempty"`
Gecos string `json:"gecos,omitempty"`
Groups []PasswdUserGroup `json:"groups,omitempty"`
HomeDir string `json:"homeDir,omitempty"`
Name string `json:"name,omitempty"`
NoCreateHome bool `json:"noCreateHome,omitempty"`
NoLogInit bool `json:"noLogInit,omitempty"`
NoUserGroup bool `json:"noUserGroup,omitempty"`
PasswordHash *string `json:"passwordHash,omitempty"`
PrimaryGroup string `json:"primaryGroup,omitempty"`
SSHAuthorizedKeys []SSHAuthorizedKey `json:"sshAuthorizedKeys,omitempty"`
Shell string `json:"shell,omitempty"`
System bool `json:"system,omitempty"`
UID *int `json:"uid,omitempty"`
}
type PasswdUserGroup string
type Raid struct {
Devices []Device `json:"devices,omitempty"`
Level string `json:"level,omitempty"`
Name string `json:"name,omitempty"`
Spares int `json:"spares,omitempty"`
}
type SSHAuthorizedKey string
type Storage struct {
Directories []Directory `json:"directories,omitempty"`
Disks []Disk `json:"disks,omitempty"`
Files []File `json:"files,omitempty"`
Filesystems []Filesystem `json:"filesystems,omitempty"`
Links []Link `json:"links,omitempty"`
Raid []Raid `json:"raid,omitempty"`
}
type Systemd struct {
Units []Unit `json:"units,omitempty"`
}
type Timeouts struct {
HTTPResponseHeaders *int `json:"httpResponseHeaders,omitempty"`
HTTPTotal *int `json:"httpTotal,omitempty"`
}
type Unit struct {
Contents string `json:"contents,omitempty"`
Dropins []Dropin `json:"dropins,omitempty"`
Enable bool `json:"enable,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Mask bool `json:"mask,omitempty"`
Name string `json:"name,omitempty"`
}
type Usercreate struct {
Gecos string `json:"gecos,omitempty"`
Groups []UsercreateGroup `json:"groups,omitempty"`
HomeDir string `json:"homeDir,omitempty"`
NoCreateHome bool `json:"noCreateHome,omitempty"`
NoLogInit bool `json:"noLogInit,omitempty"`
NoUserGroup bool `json:"noUserGroup,omitempty"`
PrimaryGroup string `json:"primaryGroup,omitempty"`
Shell string `json:"shell,omitempty"`
System bool `json:"system,omitempty"`
UID *int `json:"uid,omitempty"`
}
type UsercreateGroup string
type Verification struct {
Hash *string `json:"hash,omitempty"`
}