@@ -14,29 +14,55 @@ import (
14
14
// Does not include the literal image data; just metadata.
15
15
// returned by listing images, and by fetching a specific image.
16
16
type Image struct {
17
+ // ID is the image UUID
17
18
ID string
18
19
20
+ // Name is the human-readable display name for the image.
19
21
Name string
20
22
23
+ // Status is the image status. It can be "queued" or "active"
24
+ // See imageservice/v2/images/type.go
21
25
Status ImageStatus
22
26
27
+ // Tags is a list of image tags. Tags are arbitrarily defined strings
28
+ // attached to an image.
23
29
Tags []string
24
30
31
+ // ContainerFormat is the format of the container.
32
+ // Valid values are ami, ari, aki, bare, and ovf.
25
33
ContainerFormat string `mapstructure:"container_format"`
34
+
35
+ // DiskFormat is the format of the disk.
36
+ // If set, valid values are ami, ari, aki, vhd, vmdk, raw, qcow2, vdi, and iso.
26
37
DiskFormat string `mapstructure:"disk_format"`
27
38
39
+ // MinDiskGigabytes is the amount of disk space in GB that is required to boot the image.
28
40
MinDiskGigabytes int `mapstructure:"min_disk"`
41
+
42
+ // MinRAMMegabytes [optional] is the amount of RAM in MB that is required to boot the image.
29
43
MinRAMMegabytes int `mapstructure:"min_ram"`
30
44
45
+ // Owner is the tenant the image belongs to.
31
46
Owner string
32
47
48
+ // Protected is whether the image is deletable or not.
33
49
Protected bool
50
+
51
+ // Visibility defines who can see/use the image.
34
52
Visibility ImageVisibility
35
53
54
+ // Checksum is the checksum of the data that's associated with the image
36
55
Checksum string
56
+
57
+ // SizeBytes is the size of the data that's associated with the image.
37
58
SizeBytes int `mapstructure:"size"`
38
59
60
+ // Metadata is a set of metadata associated with the image.
61
+ // Image metadata allow for meaningfully define the image properties
62
+ // and tags. See http://docs.openstack.org/developer/glance/metadefs-concepts.html.
39
63
Metadata map [string ]string
64
+
65
+ // Properties is a set of key-value pairs, if any, that are associated with the image.
40
66
Properties map [string ]string
41
67
}
42
68
0 commit comments