From b85b217f55993955da9ad0cae7735747b2f24390 Mon Sep 17 00:00:00 2001 From: baude Date: Thu, 8 Mar 2018 15:45:52 -0600 Subject: Stage3 Image Library This represents the stage3 implementation for the image library. At this point, we are moving the image-centric functions to pkg/image including migration of args and object-oriented references. This is a not a one-for-one migration of funcs and some funcs will need to continue to reside in runtime_img as they are overly specific to libpod and probably not useful to others. Signed-off-by: baude Closes: #484 Approved by: baude --- libpod/image/parts.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpod/image/parts.go') diff --git a/libpod/image/parts.go b/libpod/image/parts.go index e4ae489f9..979f223fc 100644 --- a/libpod/image/parts.go +++ b/libpod/image/parts.go @@ -47,6 +47,7 @@ func decompose(input string) (imageParts, error) { name: imageName, tag: tag, isTagged: isTagged, + transport: DefaultTransport, }, nil } @@ -54,3 +55,8 @@ func decompose(input string) (imageParts, error) { func (ip *imageParts) assemble() string { return fmt.Sprintf("%s/%s:%s", ip.registry, ip.name, ip.tag) } + +// assemble concatenates an image's parts with transport into a string +func (ip *imageParts) assembleWithTransport() string { + return fmt.Sprintf("%s%s/%s:%s", ip.transport, ip.registry, ip.name, ip.tag) +} -- cgit v1.2.3-54-g00ecf