@@ -14,29 +14,55 @@ import (
1414// Does not include the literal image data; just metadata.
1515// returned by listing images, and by fetching a specific image.
1616type Image struct {
17+ // ID is the image UUID
1718 ID string
1819
20+ // Name is the human-readable display name for the image.
1921 Name string
2022
23+ // Status is the image status. It can be "queued" or "active"
24+ // See imageservice/v2/images/type.go
2125 Status ImageStatus
2226
27+ // Tags is a list of image tags. Tags are arbitrarily defined strings
28+ // attached to an image.
2329 Tags []string
2430
31+ // ContainerFormat is the format of the container.
32+ // Valid values are ami, ari, aki, bare, and ovf.
2533 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.
2637 DiskFormat string `mapstructure:"disk_format"`
2738
39+ // MinDiskGigabytes is the amount of disk space in GB that is required to boot the image.
2840 MinDiskGigabytes int `mapstructure:"min_disk"`
41+
42+ // MinRAMMegabytes [optional] is the amount of RAM in MB that is required to boot the image.
2943 MinRAMMegabytes int `mapstructure:"min_ram"`
3044
45+ // Owner is the tenant the image belongs to.
3146 Owner string
3247
48+ // Protected is whether the image is deletable or not.
3349 Protected bool
50+
51+ // Visibility defines who can see/use the image.
3452 Visibility ImageVisibility
3553
54+ // Checksum is the checksum of the data that's associated with the image
3655 Checksum string
56+
57+ // SizeBytes is the size of the data that's associated with the image.
3758 SizeBytes int `mapstructure:"size"`
3859
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.
3963 Metadata map [string ]string
64+
65+ // Properties is a set of key-value pairs, if any, that are associated with the image.
4066 Properties map [string ]string
4167}
4268
0 commit comments