diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-28 08:06:08 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-01 18:22:59 +0000 |
commit | 5507f15ba58a271c018a5446ef091ee477b18b1d (patch) | |
tree | 49f38411eff776d990f219b1deb5e952ff461dec /pkg | |
parent | 04f3a9079c5dac0f88ce19c22a7f8761334fee90 (diff) | |
download | podman-5507f15ba58a271c018a5446ef091ee477b18b1d.tar.gz podman-5507f15ba58a271c018a5446ef091ee477b18b1d.tar.bz2 podman-5507f15ba58a271c018a5446ef091ee477b18b1d.zip |
Replace Runtime.LoadFromArchive with Runtime.LoadFromArchiveReference
All callers of LoadFromArchive expect the input to be in the
transport:name format, or create it that way. So, pass a
types.ImageReference instead of a string.
That requires us to add an explicit parse step in (podman pull);
in (podman load) we can, instead of pasting strings, create
native objects directly.
Changes the error behavior of (podman pull), we no longer
try heuristically parsing docker-archive:... inputs as
Docker references.
Also changes the string reported by (podman load) if all parsing
attempts fail, to be only the path instead of dir:path. The error
message itself is likely to be the same (from directory.Transport).
(While at it, update a mismatched comment.)
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1176
Approved by: rhatdan
Diffstat (limited to 'pkg')
0 files changed, 0 insertions, 0 deletions