aboutsummaryrefslogtreecommitdiff
path: root/libpod/image/pull.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2018-07-27 01:20:58 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-01 18:22:58 +0000
commit6ddf81f07dfc3a30fd426566559352072e9fcd6a (patch)
treec26fc887790c1c851905406d574a2e726843b833 /libpod/image/pull.go
parentd61bed2b2dcca27d8baecc2b63255f9df456ba2f (diff)
downloadpodman-6ddf81f07dfc3a30fd426566559352072e9fcd6a.tar.gz
podman-6ddf81f07dfc3a30fd426566559352072e9fcd6a.tar.bz2
podman-6ddf81f07dfc3a30fd426566559352072e9fcd6a.zip
Rename getPullListFromRef to refPairsFromImageReference
This is a bit more specific as to what "ref" or "list" means, and consistent with refPairsFromPossiblyUnqualifiedName Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com> Closes: #1176 Approved by: rhatdan
Diffstat (limited to 'libpod/image/pull.go')
-rw-r--r--libpod/image/pull.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go
index bbabba7b9..6fa036013 100644
--- a/libpod/image/pull.go
+++ b/libpod/image/pull.go
@@ -181,8 +181,8 @@ func refNamesFromImageReference(ctx context.Context, srcRef types.ImageReference
return pullNames, nil
}
-// getPullListFromRef returns a list of pullRefPair for a single ImageReference, depending on the used transport.
-func (ir *Runtime) getPullListFromRef(ctx context.Context, srcRef types.ImageReference, imgName string, sc *types.SystemContext) ([]*pullRefPair, error) {
+// refPairsFromImageReference returns a list of pullRefPair for a single ImageReference, depending on the used transport.
+func (ir *Runtime) refPairsFromImageReference(ctx context.Context, srcRef types.ImageReference, imgName string, sc *types.SystemContext) ([]*pullRefPair, error) {
refNames, err := refNamesFromImageReference(ctx, srcRef, imgName, sc)
if err != nil {
return nil, err
@@ -206,7 +206,7 @@ func (i *Image) pullImage(ctx context.Context, writer io.Writer, authfile, signa
return nil, errors.Wrap(err, "error getting default registries to try")
}
} else {
- pullRefPairs, err = i.imageruntime.getPullListFromRef(ctx, srcRef, i.InputName, sc)
+ pullRefPairs, err = i.imageruntime.refPairsFromImageReference(ctx, srcRef, i.InputName, sc)
if err != nil {
return nil, errors.Wrapf(err, "error getting pullRefPair info to pull image %q", i.InputName)
}