fix golint warnings/errors on package api/types/

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
Zhang Wei
2015-08-07 09:43:43 +08:00
parent 818190b1ff
commit 3d6617ffe7
16 changed files with 104 additions and 68 deletions
+2 -2
View File
@@ -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
View File
@@ -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),