| 1 | package e2eutils |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | type 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 | |
| 14 | type 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 | |
| 21 | type Custom struct { |
| 22 | Config string `json:"config"` |
| 23 | NeedsNetwork *bool `json:"needsNetwork,omitempty"` |
| 24 | Pin string `json:"pin"` |
| 25 | } |
| 26 | |
| 27 | type Device string |
| 28 | |
| 29 | type Directory struct { |
| 30 | Node |
| 31 | DirectoryEmbedded1 |
| 32 | } |
| 33 | |
| 34 | type DirectoryEmbedded1 struct { |
| 35 | Mode *int `json:"mode,omitempty"` |
| 36 | } |
| 37 | |
| 38 | type Disk struct { |
| 39 | Device string `json:"device"` |
| 40 | Partitions []Partition `json:"partitions,omitempty"` |
| 41 | WipeTable *bool `json:"wipeTable,omitempty"` |
| 42 | } |
| 43 | |
| 44 | type Dropin struct { |
| 45 | Contents *string `json:"contents,omitempty"` |
| 46 | Name string `json:"name"` |
| 47 | } |
| 48 | |
| 49 | type File struct { |
| 50 | Node |
| 51 | FileEmbedded1 |
| 52 | } |
| 53 | |
| 54 | type FileEmbedded1 struct { |
| 55 | Append []Resource `json:"append,omitempty"` |
| 56 | Contents Resource `json:"contents,omitempty"` |
| 57 | Mode *int `json:"mode,omitempty"` |
| 58 | } |
| 59 | |
| 60 | type 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 | |
| 71 | type FilesystemOption string |
| 72 | |
| 73 | type Group string |
| 74 | |
| 75 | type HTTPHeader struct { |
| 76 | Name string `json:"name"` |
| 77 | Value *string `json:"value,omitempty"` |
| 78 | } |
| 79 | |
| 80 | type HTTPHeaders []HTTPHeader |
| 81 | |
| 82 | type 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 | |
| 90 | type IgnitionConfig struct { |
| 91 | Merge []Resource `json:"merge,omitempty"` |
| 92 | Replace Resource `json:"replace,omitempty"` |
| 93 | } |
| 94 | |
| 95 | type Link struct { |
| 96 | Node |
| 97 | LinkEmbedded1 |
| 98 | } |
| 99 | |
| 100 | type LinkEmbedded1 struct { |
| 101 | Hard *bool `json:"hard,omitempty"` |
| 102 | Target string `json:"target"` |
| 103 | } |
| 104 | |
| 105 | type 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 | |
| 116 | type LuksOption string |
| 117 | |
| 118 | type MountOption string |
| 119 | |
| 120 | type NoProxyItem string |
| 121 | |
| 122 | type 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 | |
| 129 | type NodeGroup struct { |
| 130 | ID *int `json:"id,omitempty"` |
| 131 | Name *string `json:"name,omitempty"` |
| 132 | } |
| 133 | |
| 134 | type NodeUser struct { |
| 135 | ID *int `json:"id,omitempty"` |
| 136 | Name *string `json:"name,omitempty"` |
| 137 | } |
| 138 | |
| 139 | type 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 | |
| 151 | type Passwd struct { |
| 152 | Groups []PasswdGroup `json:"groups,omitempty"` |
| 153 | Users []PasswdUser `json:"users,omitempty"` |
| 154 | } |
| 155 | |
| 156 | type 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 | |
| 164 | type 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 | |
| 181 | type Proxy struct { |
| 182 | HTTPProxy *string `json:"httpProxy,omitempty"` |
| 183 | HTTPSProxy *string `json:"httpsProxy,omitempty"` |
| 184 | NoProxy []NoProxyItem `json:"noProxy,omitempty"` |
| 185 | } |
| 186 | |
| 187 | type 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 | |
| 195 | type RaidOption string |
| 196 | |
| 197 | type 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 | |
| 204 | type SSHAuthorizedKey string |
| 205 | |
| 206 | type Security struct { |
| 207 | TLS TLS `json:"tls,omitempty"` |
| 208 | } |
| 209 | |
| 210 | type 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 | |
| 220 | type Systemd struct { |
| 221 | Units []Unit `json:"units,omitempty"` |
| 222 | } |
| 223 | |
| 224 | type TLS struct { |
| 225 | CertificateAuthorities []Resource `json:"certificateAuthorities,omitempty"` |
| 226 | } |
| 227 | |
| 228 | type Tang struct { |
| 229 | Thumbprint *string `json:"thumbprint,omitempty"` |
| 230 | URL string `json:"url,omitempty"` |
| 231 | } |
| 232 | |
| 233 | type Timeouts struct { |
| 234 | HTTPResponseHeaders *int `json:"httpResponseHeaders,omitempty"` |
| 235 | HTTPTotal *int `json:"httpTotal,omitempty"` |
| 236 | } |
| 237 | |
| 238 | type 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 | |
| 246 | type Verification struct { |
| 247 | Hash *string `json:"hash,omitempty"` |
| 248 | } |