@@ -16,12 +16,14 @@ limitations under the License.
16
16
17
17
package ignition
18
18
19
+ // CaReference holds the CaReference specific information.
19
20
type CaReference struct {
20
21
HTTPHeaders HTTPHeaders `json:"httpHeaders,omitempty"`
21
22
Source string `json:"source"`
22
23
Verification Verification `json:"verification,omitempty"`
23
24
}
24
25
26
+ // Config holds the Config specific information.
25
27
type Config struct {
26
28
Ignition Ignition `json:"ignition"`
27
29
Networkd Networkd `json:"networkd,omitempty"`
@@ -30,69 +32,84 @@ type Config struct {
30
32
Systemd Systemd `json:"systemd,omitempty"`
31
33
}
32
34
35
+ // ConfigReference holds the ConfigReference specific information.
33
36
type ConfigReference struct {
34
37
HTTPHeaders HTTPHeaders `json:"httpHeaders,omitempty"`
35
38
Source string `json:"source"`
36
39
Verification Verification `json:"verification,omitempty"`
37
40
}
38
41
42
+ // Create holds the Create specific information.
39
43
type Create struct {
40
44
Force bool `json:"force,omitempty"`
41
45
Options []CreateOption `json:"options,omitempty"`
42
46
}
43
47
48
+ // CreateOption holds the CreateOption specific information.
44
49
type CreateOption string
45
50
51
+ // Device holds the Device specific information.
46
52
type Device string
47
53
54
+ // Directory holds the Directory specific information.
48
55
type Directory struct {
49
56
Node
50
57
DirectoryEmbedded1
51
58
}
52
59
60
+ // DirectoryEmbedded1 holds the DirectoryEmbedded1 specific information.
53
61
type DirectoryEmbedded1 struct {
54
62
Mode * int `json:"mode,omitempty"`
55
63
}
56
64
65
+ // Disk holds the Disk specific information.
57
66
type Disk struct {
58
67
Device string `json:"device"`
59
68
Partitions []Partition `json:"partitions,omitempty"`
60
69
WipeTable bool `json:"wipeTable,omitempty"`
61
70
}
62
71
72
+ // File holds the File specific information.
63
73
type File struct {
64
74
Node
65
75
FileEmbedded1
66
76
}
67
77
78
+ // FileContents holds the FileContents specific information.
68
79
type FileContents struct {
69
80
Compression string `json:"compression,omitempty"`
70
81
HTTPHeaders HTTPHeaders `json:"httpHeaders,omitempty"`
71
82
Source string `json:"source,omitempty"`
72
83
Verification Verification `json:"verification,omitempty"`
73
84
}
74
85
86
+ // FileEmbedded1 holds the FileEmbedded1 specific information.
75
87
type FileEmbedded1 struct {
76
88
Append bool `json:"append,omitempty"`
77
89
Contents FileContents `json:"contents,omitempty"`
78
90
Mode * int `json:"mode,omitempty"`
79
91
}
80
92
93
+ // Filesystem holds the Filesystem specific information.
81
94
type Filesystem struct {
82
95
Mount * Mount `json:"mount,omitempty"`
83
96
Name string `json:"name,omitempty"`
84
97
Path * string `json:"path,omitempty"`
85
98
}
86
99
100
+ // Group holds the Group specific information.
87
101
type Group string
88
102
103
+ // HTTPHeader holds the HTTPHeader specific information.
89
104
type HTTPHeader struct {
90
105
Name string `json:"name"`
91
106
Value string `json:"value"`
92
107
}
93
108
109
+ // HTTPHeaders holds the HTTPHeaders specific information.
94
110
type HTTPHeaders []HTTPHeader
95
111
112
+ // Ignition holds the Ignition specific information.
96
113
type Ignition struct {
97
114
Config IgnitionConfig `json:"config,omitempty"`
98
115
Proxy Proxy `json:"proxy,omitempty"`
@@ -101,21 +118,25 @@ type Ignition struct {
101
118
Version string `json:"version,omitempty"`
102
119
}
103
120
104
- type IgnitionConfig struct {
121
+ // IgnitionConfig holds the IgnitionConfig specific information.
122
+ type IgnitionConfig struct { //nolint:revive
105
123
Append []ConfigReference `json:"append,omitempty"`
106
124
Replace * ConfigReference `json:"replace,omitempty"`
107
125
}
108
126
127
+ // Link holds the Link specific information.
109
128
type Link struct {
110
129
Node
111
130
LinkEmbedded1
112
131
}
113
132
133
+ // LinkEmbedded1 holds the LinkEmbedded1 specific information.
114
134
type LinkEmbedded1 struct {
115
135
Hard bool `json:"hard,omitempty"`
116
136
Target string `json:"target"`
117
137
}
118
138
139
+ // Mount holds the Mount specific information.
119
140
type Mount struct {
120
141
Create * Create `json:"create,omitempty"`
121
142
Device string `json:"device"`
@@ -126,25 +147,31 @@ type Mount struct {
126
147
WipeFilesystem bool `json:"wipeFilesystem,omitempty"`
127
148
}
128
149
150
+ // MountOption holds the MountOption specific information.
129
151
type MountOption string
130
152
153
+ // Networkd holds the Networkd specific information.
131
154
type Networkd struct {
132
155
Units []Networkdunit `json:"units,omitempty"`
133
156
}
134
157
158
+ // NetworkdDropin holds the NetworkdDropin specific information.
135
159
type NetworkdDropin struct {
136
160
Contents string `json:"contents,omitempty"`
137
161
Name string `json:"name"`
138
162
}
139
163
164
+ // Networkdunit holds the Networkdunit specific information.
140
165
type Networkdunit struct {
141
166
Contents string `json:"contents,omitempty"`
142
167
Dropins []NetworkdDropin `json:"dropins,omitempty"`
143
168
Name string `json:"name"`
144
169
}
145
170
171
+ // NoProxyItem holds the NoProxyItem specific information.
146
172
type NoProxyItem string
147
173
174
+ // Node holds the Node specific information.
148
175
type Node struct {
149
176
Filesystem string `json:"filesystem"`
150
177
Group * NodeGroup `json:"group,omitempty"`
@@ -153,16 +180,19 @@ type Node struct {
153
180
User * NodeUser `json:"user,omitempty"`
154
181
}
155
182
183
+ // NodeGroup holds the NodeGroup specific information.
156
184
type NodeGroup struct {
157
185
ID * int `json:"id,omitempty"`
158
186
Name string `json:"name,omitempty"`
159
187
}
160
188
189
+ // NodeUser holds the NodeUser specific information.
161
190
type NodeUser struct {
162
191
ID * int `json:"id,omitempty"`
163
192
Name string `json:"name,omitempty"`
164
193
}
165
194
195
+ // Partition holds the Partition specific information.
166
196
type Partition struct {
167
197
GUID string `json:"guid,omitempty"`
168
198
Label * string `json:"label,omitempty"`
@@ -176,18 +206,21 @@ type Partition struct {
176
206
WipePartitionEntry bool `json:"wipePartitionEntry,omitempty"`
177
207
}
178
208
209
+ // Passwd holds the Passwd specific information.
179
210
type Passwd struct {
180
211
Groups []PasswdGroup `json:"groups,omitempty"`
181
212
Users []PasswdUser `json:"users,omitempty"`
182
213
}
183
214
215
+ // PasswdGroup holds the PasswdGroup specific information.
184
216
type PasswdGroup struct {
185
- Gid * int `json:"gid,omitempty"`
217
+ Gid * int `json:"gid,omitempty"` //nolint:stylecheck
186
218
Name string `json:"name"`
187
219
PasswordHash string `json:"passwordHash,omitempty"`
188
220
System bool `json:"system,omitempty"`
189
221
}
190
222
223
+ // PasswdUser holds the PasswdUser specific information.
191
224
type PasswdUser struct {
192
225
Create * Usercreate `json:"create,omitempty"`
193
226
Gecos string `json:"gecos,omitempty"`
@@ -205,12 +238,14 @@ type PasswdUser struct {
205
238
UID * int `json:"uid,omitempty"`
206
239
}
207
240
241
+ // Proxy holds the Proxy specific information.
208
242
type Proxy struct {
209
243
HTTPProxy string `json:"httpProxy,omitempty"`
210
244
HTTPSProxy string `json:"httpsProxy,omitempty"`
211
245
NoProxy []NoProxyItem `json:"noProxy,omitempty"`
212
246
}
213
247
248
+ // Raid holds the Raid specific information.
214
249
type Raid struct {
215
250
Devices []Device `json:"devices"`
216
251
Level string `json:"level"`
@@ -219,14 +254,18 @@ type Raid struct {
219
254
Spares int `json:"spares,omitempty"`
220
255
}
221
256
257
+ // RaidOption holds the RaidOption specific information.
222
258
type RaidOption string
223
259
260
+ // SSHAuthorizedKey holds the SSHAuthorizedKey specific information.
224
261
type SSHAuthorizedKey string
225
262
263
+ // Security holds the Security specific information.
226
264
type Security struct {
227
265
TLS TLS `json:"tls,omitempty"`
228
266
}
229
267
268
+ // Storage holds the Storage specific information.
230
269
type Storage struct {
231
270
Directories []Directory `json:"directories,omitempty"`
232
271
Disks []Disk `json:"disks,omitempty"`
@@ -236,24 +275,29 @@ type Storage struct {
236
275
Raid []Raid `json:"raid,omitempty"`
237
276
}
238
277
278
+ // Systemd holds the Systemd specific information.
239
279
type Systemd struct {
240
280
Units []Unit `json:"units,omitempty"`
241
281
}
242
282
283
+ // SystemdDropin holds the SystemdDropin specific information.
243
284
type SystemdDropin struct {
244
285
Contents string `json:"contents,omitempty"`
245
286
Name string `json:"name"`
246
287
}
247
288
289
+ // TLS holds the TLS specific information.
248
290
type TLS struct {
249
291
CertificateAuthorities []CaReference `json:"certificateAuthorities,omitempty"`
250
292
}
251
293
294
+ // Timeouts holds the Timeouts specific information.
252
295
type Timeouts struct {
253
296
HTTPResponseHeaders * int `json:"httpResponseHeaders,omitempty"`
254
297
HTTPTotal * int `json:"httpTotal,omitempty"`
255
298
}
256
299
300
+ // Unit holds the Unit specific information.
257
301
type Unit struct {
258
302
Contents string `json:"contents,omitempty"`
259
303
Dropins []SystemdDropin `json:"dropins,omitempty"`
@@ -263,6 +307,7 @@ type Unit struct {
263
307
Name string `json:"name"`
264
308
}
265
309
310
+ // Usercreate holds the Usercreate specific information.
266
311
type Usercreate struct {
267
312
Gecos string `json:"gecos,omitempty"`
268
313
Groups []UsercreateGroup `json:"groups,omitempty"`
@@ -276,8 +321,10 @@ type Usercreate struct {
276
321
UID * int `json:"uid,omitempty"`
277
322
}
278
323
324
+ // UsercreateGroup holds the UsercreateGroup specific information.
279
325
type UsercreateGroup string
280
326
327
+ // Verification holds the Verification specific information.
281
328
type Verification struct {
282
329
Hash * string `json:"hash,omitempty"`
283
330
}
0 commit comments