diff options
author | Petr Sakař <petr.sakar@chare.eu> | 2020-11-20 12:00:59 +0100 |
---|---|---|
committer | Petr Sakař <petr.sakar@chare.eu> | 2020-11-20 19:21:03 +0100 |
commit | e24e6b63722d7ed2f59104e18f00154cffb309b0 (patch) | |
tree | 54503b499fcad8f78b9d0014084df50254cde7ec /pkg | |
parent | a18365c908d45a8ee9348c5e32a240a7b9a4091b (diff) | |
download | podman-e24e6b63722d7ed2f59104e18f00154cffb309b0.tar.gz podman-e24e6b63722d7ed2f59104e18f00154cffb309b0.tar.bz2 podman-e24e6b63722d7ed2f59104e18f00154cffb309b0.zip |
REST API v2 - list of images - mandatory Created attribute
fixes https://github.com/containers/podman/issues/8418
created attribute is missing for images with created datetime set to 0 Unix time (January 1, 1970 UTC) because 0 is considered as default value, and thus attribute was ommited because of 'omitempty' flag
Signed-off-by: Petr Sakař <petr.sakar@chare.eu>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/entities/images.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go index 101542a98..cbd6e9192 100644 --- a/pkg/domain/entities/images.go +++ b/pkg/domain/entities/images.go @@ -51,10 +51,10 @@ func (i *Image) Id() string { // nolint } type ImageSummary struct { - ID string `json:"Id"` - ParentId string `json:",omitempty"` // nolint - RepoTags []string `json:",omitempty"` - Created int64 `json:",omitempty"` + ID string `json:"Id"` + ParentId string `json:",omitempty"` // nolint + RepoTags []string `json:",omitempty"` + Created int64 Size int64 `json:",omitempty"` SharedSize int `json:",omitempty"` VirtualSize int64 `json:",omitempty"` |