summaryrefslogtreecommitdiff
path: root/libpod/image/image.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-03-31 12:59:08 -0500
committerBrent Baude <bbaude@redhat.com>2020-04-01 14:10:57 -0500
commit8500ce6b9ab0050b925ec3b899495cb2cc8d367f (patch)
tree554448ea6140ef2a2814fe44b41b5da6f86b06f3 /libpod/image/image.go
parentd534e524272121a6489c1a2a2c11c6b389027ecd (diff)
downloadpodman-8500ce6b9ab0050b925ec3b899495cb2cc8d367f.tar.gz
podman-8500ce6b9ab0050b925ec3b899495cb2cc8d367f.tar.bz2
podman-8500ce6b9ab0050b925ec3b899495cb2cc8d367f.zip
podmanv2 load
enable podman load for v2 add reexec into main add systemd build flag to v2 makefile Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r--libpod/image/image.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 5f914ed79..80cc6f15a 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -512,8 +512,8 @@ func getImageDigest(ctx context.Context, src types.ImageReference, sc *types.Sys
return "@" + imageDigest.Hex(), nil
}
-// normalizedTag returns the canonical version of tag for use in Image.Names()
-func normalizedTag(tag string) (reference.Named, error) {
+// NormalizedTag returns the canonical version of tag for use in Image.Names()
+func NormalizedTag(tag string) (reference.Named, error) {
decomposedTag, err := decompose(tag)
if err != nil {
return nil, err
@@ -541,7 +541,7 @@ func (i *Image) TagImage(tag string) error {
if err := i.reloadImage(); err != nil {
return err
}
- ref, err := normalizedTag(tag)
+ ref, err := NormalizedTag(tag)
if err != nil {
return err
}