summaryrefslogtreecommitdiff
path: root/pkg/adapter
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-08 16:58:50 +0100
committerGitHub <noreply@github.com>2020-01-08 16:58:50 +0100
commitc6ad42a176c943aa96a8c053682196cd38fd6a1a (patch)
treeef71ccbda94462f1bee19e8153c361751813df8a /pkg/adapter
parent27caffbb240725255485deaaecd548663adbf1fd (diff)
parentbcf5753276fcb7280924b46c7c49ef3e2388c9b0 (diff)
downloadpodman-c6ad42a176c943aa96a8c053682196cd38fd6a1a.tar.gz
podman-c6ad42a176c943aa96a8c053682196cd38fd6a1a.tar.bz2
podman-c6ad42a176c943aa96a8c053682196cd38fd6a1a.zip
Merge pull request #4816 from vrothberg/lint
Fix golint errors
Diffstat (limited to 'pkg/adapter')
-rw-r--r--pkg/adapter/runtime.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/adapter/runtime.go b/pkg/adapter/runtime.go
index dd4f0f35f..8933e826f 100644
--- a/pkg/adapter/runtime.go
+++ b/pkg/adapter/runtime.go
@@ -84,7 +84,7 @@ func getRuntime(runtime *libpod.Runtime) (*LocalRuntime, error) {
}, nil
}
-// GetFilterImages returns a slice of images in containerimages that are "filtered"
+// GetFilteredImages returns a slice of images in containerimages that are "filtered"
func (r *LocalRuntime) GetFilteredImages(filters []string, rwOnly bool) ([]*ContainerImage, error) {
images, err := r.ImageRuntime().GetImagesWithFilters(filters)
if err != nil {
@@ -111,6 +111,8 @@ func (r *LocalRuntime) getImages(rwOnly bool) ([]*ContainerImage, error) {
return r.ImagestoContainerImages(images, rwOnly)
}
+// ImagestoContainerImages converts the slice of *image.Image to a slice of
+// *ContainerImage. ReadOnly images are skipped when rwOnly is set.
func (r *LocalRuntime) ImagestoContainerImages(images []*image.Image, rwOnly bool) ([]*ContainerImage, error) {
var containerImages []*ContainerImage
for _, i := range images {