summaryrefslogtreecommitdiff
path: root/libpod/image/image.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2020-02-07 02:32:01 +0100
committerMiloslav Trmač <mitr@redhat.com>2020-02-07 23:36:01 +0100
commit5b5bacbd95fb4a87bdb294504621dba766aed626 (patch)
treea9808c7ef508fb4e34f8d7031b7fd5a542bd886f /libpod/image/image.go
parent972df82632bf0840ac84756306ef607ea5be72d8 (diff)
downloadpodman-5b5bacbd95fb4a87bdb294504621dba766aed626.tar.gz
podman-5b5bacbd95fb4a87bdb294504621dba766aed626.tar.bz2
podman-5b5bacbd95fb4a87bdb294504621dba766aed626.zip
Document an aspect of newFromStorage behavior
Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r--libpod/image/image.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index f6792eeac..ddde1c8da 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -120,7 +120,7 @@ func (ir *Runtime) newImage(inputName string, img *storage.Image) *Image {
}
}
-// newFromStorage creates a new image object from a storage.Image
+// newFromStorage creates a new image object from a storage.Image. Its "input name" will be its ID.
func (ir *Runtime) newFromStorage(img *storage.Image) *Image {
return ir.newImage(img.ID, img)
}