mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 23:38:24 +00:00
fix golint warnings/errors on package api/types/
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
+2
-2
@@ -97,7 +97,7 @@ func (s *TagStore) Images(filterArgs, filter string, all bool) ([]*types.Image,
|
||||
}
|
||||
if filtTagged {
|
||||
newImage := new(types.Image)
|
||||
newImage.ParentId = image.Parent
|
||||
newImage.ParentID = image.Parent
|
||||
newImage.ID = image.ID
|
||||
newImage.Created = image.Created.Unix()
|
||||
newImage.Size = image.Size
|
||||
@@ -132,7 +132,7 @@ func (s *TagStore) Images(filterArgs, filter string, all bool) ([]*types.Image,
|
||||
continue
|
||||
}
|
||||
newImage := new(types.Image)
|
||||
newImage.ParentId = image.Parent
|
||||
newImage.ParentID = image.Parent
|
||||
newImage.RepoTags = []string{"<none>:<none>"}
|
||||
newImage.RepoDigests = []string{"<none>@<none>"}
|
||||
newImage.ID = image.ID
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ func (s *TagStore) Lookup(name string) (*types.ImageInspect, error) {
|
||||
}
|
||||
|
||||
imageInspect := &types.ImageInspect{
|
||||
Id: image.ID,
|
||||
ID: image.ID,
|
||||
Parent: image.Parent,
|
||||
Comment: image.Comment,
|
||||
Created: image.Created.Format(time.RFC3339Nano),
|
||||
|
||||
Reference in New Issue
Block a user