summaryrefslogtreecommitdiff
path: root/libpod/image/image.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2018-07-19 00:11:15 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-23 12:44:38 +0000
commit3b964a4d9a6023375df736cd09f7375805bd3608 (patch)
tree8d3b479ac45270ebbc4da78edd0602cdac1ab78c /libpod/image/image.go
parent347ba2cc253e37e2b4f506133610e3397bca1a99 (diff)
downloadpodman-3b964a4d9a6023375df736cd09f7375805bd3608.tar.gz
podman-3b964a4d9a6023375df736cd09f7375805bd3608.tar.bz2
podman-3b964a4d9a6023375df736cd09f7375805bd3608.zip
Make Image.HasShaInInputName to an independent local function
The functionality only depends on Image.InputName, and we will want to make the only user of this independent of the fairly complex Image type. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com> Closes: #1112 Approved by: rhatdan
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r--libpod/image/image.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 7ea851f5d..0e236503d 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -1074,9 +1074,3 @@ func (i *Image) Comment(ctx context.Context, manifestType string) (string, error
}
return ociv1Img.History[0].Comment, nil
}
-
-// HasShaInInputName returns a bool as to whether the user provide an image name that includes
-// a reference to a specific sha
-func (i *Image) HasShaInInputName() bool {
- return strings.Contains(i.InputName, "@sha256:")
-}