Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit a540297

Browse files
author
Samuel Ortiz
committed
imageservice: Tag some of the Image structure fields
To help mapstructure decode them. Signed-off-by: Samuel Ortiz <[email protected]>
1 parent f92c115 commit a540297

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

openstack/imageservice/v2/images/results.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ type Image struct {
2222

2323
Tags []string
2424

25-
ContainerFormat string
26-
DiskFormat string
25+
ContainerFormat string `mapstructure:"container_format"`
26+
DiskFormat string `mapstructure:"disk_format"`
2727

28-
MinDiskGigabytes int
29-
MinRAMMegabytes int
28+
MinDiskGigabytes int `mapstructure:"min_disk"`
29+
MinRAMMegabytes int `mapstructure:"min_ram"`
3030

3131
Owner string
3232

3333
Protected bool
3434
Visibility ImageVisibility
3535

3636
Checksum string
37-
SizeBytes int
37+
SizeBytes int `mapstructure:"size"`
3838

3939
Metadata map[string]string
4040
Properties map[string]string

0 commit comments

Comments
 (0)