-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcosimetadata.go
More file actions
38 lines (33 loc) · 1.03 KB
/
cosimetadata.go
File metadata and controls
38 lines (33 loc) · 1.03 KB
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
package imagecustomizerlib
type MetadataJson struct {
Version string `json:"version"`
OsArch string `json:"osArch"`
Images []FileSystem `json:"images"`
OsRelease string `json:"osRelease"`
Id string `json:"id"`
OsPackages []OsPackage `json:"osPackages"`
}
type FileSystem struct {
Image ImageFile `json:"image"`
MountPoint string `json:"mountPoint"`
FsType string `json:"fsType"`
FsUuid string `json:"fsUuid"`
PartType string `json:"partType"`
Verity *VerityConfig `json:"verity"`
}
type VerityConfig struct {
Image ImageFile `json:"image"`
Roothash string `json:"roothash"`
}
type ImageFile struct {
Path string `json:"path"`
CompressedSize uint64 `json:"compressedSize"`
UncompressedSize uint64 `json:"uncompressedSize"`
Sha384 string `json:"sha384"`
}
type OsPackage struct {
Name string `json:"name"`
Version string `json:"version"`
Release string `json:"release"`
Arch string `json:"arch"`
}